Use strlcpy instead of snprintf somewhere

This commit is contained in:
twinaphex 2017-01-25 02:44:36 +01:00
parent 121fb3b737
commit 7594f6d4d7

View File

@ -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';
}