Merge pull request #12490 from Alcaro/patch-12

Shut up a string truncation warning
This commit is contained in:
Autechre 2021-06-05 21:19:48 +02:00 committed by GitHub
commit 5534fd7275
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,