mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 12:39:54 +00:00
replace snprintf call with strlcpy
This commit is contained in:
parent
1bd501f8d2
commit
df73a3876c
@ -6864,7 +6864,7 @@ static void setting_get_string_representation_uint_user_language(
|
||||
LANG_DATA(HUNGARIAN)
|
||||
|
||||
if (*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE) == RETRO_LANGUAGE_ENGLISH)
|
||||
snprintf(s, len, "%s", modes[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)]);
|
||||
strlcpy(s, modes[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)], len);
|
||||
else
|
||||
{
|
||||
const char *rating = msg_hash_to_str(
|
||||
|
Loading…
x
Reference in New Issue
Block a user