diff --git a/core_info.c b/core_info.c index b178441a5e..43590934ba 100644 --- a/core_info.c +++ b/core_info.c @@ -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); }