Skip to content
Permalink
Browse files

testoverlay2: use SDL_atoi, not atoi.

  • Loading branch information
icculus committed Jan 22, 2018
1 parent e99daaf commit af498591dfd7cab5e58539ece10d9750b946af95
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/testoverlay2.c
@@ -254,7 +254,7 @@ main(int argc, char **argv)
while (argc > 1) {
if (strcmp(argv[1], "-fps") == 0) {
if (argv[2]) {
fps = atoi(argv[2]);
fps = SDL_atoi(argv[2]);
if (fps == 0) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
"The -fps option requires an argument [from 1 to 1000], default is 12.\n");
@@ -278,7 +278,7 @@ main(int argc, char **argv)
argc -= 1;
} else if (strcmp(argv[1], "-scale") == 0) {
if (argv[2]) {
scale = atoi(argv[2]);
scale = SDL_atoi(argv[2]);
if (scale == 0) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
"The -scale option requires an argument [from 1 to 50], default is 5.\n");

0 comments on commit af49859

Please sign in to comment.