SDL-1.2: SDL_string.c (SDL_strdup): replace strlcpy with memcpy.

From bfdefd412581e744f60ea3ff0fe7042ba3e60a5a Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 11 May 2024 04:10:04 +0300
Subject: [PATCH] SDL_string.c (SDL_strdup): replace strlcpy with memcpy.

---
 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 c1c1f5df2..5fc33fda5 100644
--- a/src/stdlib/SDL_string.c
+++ b/src/stdlib/SDL_string.c
@@ -388,7 +388,7 @@ char *SDL_strdup(const char *string)
     size_t len = SDL_strlen(string)+1;
     char *newstr = SDL_malloc(len);
     if ( newstr ) {
-        SDL_strlcpy(newstr, string, len);
+        SDL_memcpy(newstr, string, len);
     }
     return newstr;
 }