|
@@ -564,7 +564,7 @@ SDL_strdup(const char *string)
|
|
size_t len = SDL_strlen(string) + 1;
|
|
size_t len = SDL_strlen(string) + 1;
|
|
char *newstr = SDL_malloc(len);
|
|
char *newstr = SDL_malloc(len);
|
|
if (newstr) {
|
|
if (newstr) {
|
|
- SDL_strlcpy(newstr, string, len);
|
|
|
|
|
|
+ SDL_memcpy(newstr, string, len);
|
|
}
|
|
}
|
|
return newstr;
|
|
return newstr;
|
|
}
|
|
}
|