mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Merge pull request #12490 from Alcaro/patch-12
Shut up a string truncation warning
This commit is contained in:
commit
5534fd7275
@ -9740,7 +9740,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
|
|||||||
{
|
{
|
||||||
if (!string_is_empty(cd_info.title))
|
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);
|
snprintf(title, sizeof(title), "Title: %s", cd_info.title);
|
||||||
|
|
||||||
if (menu_entries_append_enum(info->list,
|
if (menu_entries_append_enum(info->list,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user