fix SDL_atoi()

fixes https://github.com/libsdl-org/SDL/issues/4811
This commit is contained in:
Ozkan Sezer 2021-10-04 21:32:00 +03:00
parent 407867cf72
commit 3ea35fe5bb
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ int SDL_atoi(const char *string)
#ifdef HAVE_ATOI
return atoi(string);
#else
return SDL_strtol(string, NULL, 0);
return SDL_strtol(string, NULL, 10);
#endif /* HAVE_ATOI */
}