SDL-1.2: fix SDL_atoi macro calling SDL_strtol

From 15f4b475f70cb71be5e8e96a032ce2874723d524 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 15 Oct 2021 17:56:50 +0300
Subject: [PATCH] fix SDL_atoi macro calling SDL_strtol

---
 include/SDL_stdinc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h
index ae20b9db4..e835f85c3 100644
--- a/include/SDL_stdinc.h
+++ b/include/SDL_stdinc.h
@@ -532,7 +532,7 @@ extern DECLSPEC double SDLCALL SDL_strtod(const char *string, char **endp);
 #ifdef HAVE_ATOI
 #define SDL_atoi        atoi
 #else
-#define SDL_atoi(X)     SDL_strtol(X, NULL, 0)
+#define SDL_atoi(X)     SDL_strtol(X, NULL, 10)
 #endif
 
 #ifdef HAVE_ATOF