Shut up a string truncation warning

This commit is contained in:
Alcaro 2021-06-05 20:53:45 +02:00 committed by GitHub
parent f57fcd4048
commit 8e06aa2417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9740,7 +9740,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
{
if (!string_is_empty(cd_info.title))
{
char title[256];
char title[sizeof("Title: ")+sizeof(cd_info.title)];
snprintf(title, sizeof(title), "Title: %s", cd_info.title);
if (menu_entries_append_enum(info->list,