SDL: fix SDL_atoi()

From 3ea35fe5bbbdc8adc9e1183f5fc6b325a48f33ed Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 4 Oct 2021 21:32:00 +0300
Subject: [PATCH] fix SDL_atoi()

fixes https://github.com/libsdl-org/SDL/issues/4811
---
 src/stdlib/SDL_string.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c
index ab6e947591..67b376e2c5 100644
--- a/src/stdlib/SDL_string.c
+++ b/src/stdlib/SDL_string.c
@@ -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 */
 }