core_info.c - use strlcpy

This commit is contained in:
twinaphex 2017-01-25 02:39:52 +01:00
parent 721e9ec083
commit 121fb3b737

View File

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