testoverlay2: use SDL_atoi, not atoi.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 22 Jan 2018 09:46:48 -0500
changeset 11834b359333bdc52
parent 11833 ef7abee0f838
child 11835 f622a4457a25
testoverlay2: use SDL_atoi, not atoi.
test/testoverlay2.c
     1.1 --- a/test/testoverlay2.c	Mon Jan 22 09:45:16 2018 -0500
     1.2 +++ b/test/testoverlay2.c	Mon Jan 22 09:46:48 2018 -0500
     1.3 @@ -254,7 +254,7 @@
     1.4      while (argc > 1) {
     1.5          if (strcmp(argv[1], "-fps") == 0) {
     1.6              if (argv[2]) {
     1.7 -                fps = atoi(argv[2]);
     1.8 +                fps = SDL_atoi(argv[2]);
     1.9                  if (fps == 0) {
    1.10                      SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
    1.11                              "The -fps option requires an argument [from 1 to 1000], default is 12.\n");
    1.12 @@ -278,7 +278,7 @@
    1.13              argc -= 1;
    1.14          } else if (strcmp(argv[1], "-scale") == 0) {
    1.15              if (argv[2]) {
    1.16 -                scale = atoi(argv[2]);
    1.17 +                scale = SDL_atoi(argv[2]);
    1.18                  if (scale == 0) {
    1.19                      SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
    1.20                              "The -scale option requires an argument [from 1 to 50], default is 5.\n");