mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
core_info.c - use strlcpy
This commit is contained in:
parent
721e9ec083
commit
121fb3b737
@ -918,7 +918,7 @@ bool core_info_get_display_name(const char *path, char *s, size_t len)
|
||||
|
||||
if (config_get_string(conf, "display_name", &tmp))
|
||||
{
|
||||
snprintf(s, len, "%s", tmp);
|
||||
strlcpy(s, tmp, len);
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user