replace snprintf call with strlcpy

This commit is contained in:
libretroadmin 2023-06-16 13:42:01 +02:00
parent 1bd501f8d2
commit df73a3876c

View File

@ -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(