sdl2-compat: OS_GetExeName, linux: change strlcpy into an snprintf for compatibility

From e81b15f187400191da89a9270ed50f4eb9706f6a Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 13 Feb 2025 22:14:50 +0300
Subject: [PATCH] OS_GetExeName, linux: change strlcpy into an snprintf for
 compatibility

---
 src/sdl2_compat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 1099129..fbb5d4b 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -502,7 +502,7 @@ static void OS_GetExeName(char *buf, const unsigned maxpath, bool *use_base_path
                         }
                         spot = sep;
                     }
-                    strlcpy(buf, spot, maxpath);
+                    snprintf(buf, maxpath, "%s", spot);
                 }
                 *use_base_path = false;
             }