mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
Use strlcpy instead of snprintf somewhere
This commit is contained in:
parent
121fb3b737
commit
7594f6d4d7
@ -112,8 +112,7 @@ static void setting_get_string_representation_cheevos_password(void *data,
|
||||
return;
|
||||
|
||||
if (!string_is_empty(setting->value.target.string))
|
||||
snprintf(s, len, "%s",
|
||||
"********");
|
||||
strlcpy(s, "********", len);
|
||||
else
|
||||
*setting->value.target.string = '\0';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user