Skip to content

Commit 5a29263

Browse files
committed
Reduce some stack variables
1 parent da21374 commit 5a29263

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

menu/menu_displaylist.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ static int menu_displaylist_parse_core_info(
565565
const char *info_path,
566566
settings_t *settings)
567567
{
568-
char tmp[PATH_MAX_LENGTH];
568+
char tmp[NAME_MAX_LENGTH];
569569
#if IOS
570570
char shortened_path[NAME_MAX_LENGTH] = {0};
571571
#endif
@@ -891,9 +891,6 @@ static int menu_displaylist_parse_core_info(
891891

892892
/* Show the path that was checked */
893893
{
894-
char tmp_desc[PATH_MAX_LENGTH];
895-
896-
897894
#ifdef IOS
898895
shortened_path[0] = '\0';
899896
fill_pathname_abbreviate_special(shortened_path,

0 commit comments

Comments
 (0)