@@ -1129,8 +1129,8 @@ noreturn void _menu(bool first_run) {
11291129
11301130#if defined (UEFI )
11311131 {
1132- char path [256 ];
1133- if (bli_get_oneshot_entry (path , 256 )) {
1132+ char path [MENU_PATH_MAX ];
1133+ if (bli_get_oneshot_entry (path , MENU_PATH_MAX )) {
11341134 // Find the entry with this path, expand directories, and get its index.
11351135 struct menu_entry * found_entry = NULL ;
11361136 size_t found_index = 0 ;
@@ -1160,7 +1160,7 @@ noreturn void _menu(bool first_run) {
11601160 } else {
11611161 // Copy the path since find_entry_by_path calls config_get_value
11621162 // internally (via should_skip_entry), which clobbers the static buffer.
1163- char default_entry_path [256 ];
1163+ char default_entry_path [MENU_PATH_MAX ];
11641164 size_t len = strlen (default_entry );
11651165 if (len >= sizeof (default_entry_path )) {
11661166 len = sizeof (default_entry_path ) - 1 ;
@@ -1181,7 +1181,7 @@ noreturn void _menu(bool first_run) {
11811181 if (!has_entry ) {
11821182 char * remember_last = config_get_value (NULL , 0 , "REMEMBER_LAST_ENTRY" );
11831183 if (remember_last != NULL && strcasecmp (remember_last , "yes" ) == 0 ) {
1184- char last_entry_path [256 ];
1184+ char last_entry_path [MENU_PATH_MAX ];
11851185 UINTN getvar_size = sizeof (last_entry_path );
11861186 if (gRT -> GetVariable (L"LimineLastBootedEntry" ,
11871187 & limine_efi_vendor_guid ,
@@ -1202,8 +1202,8 @@ noreturn void _menu(bool first_run) {
12021202 }
12031203 }
12041204 if (!has_entry ) {
1205- char path [256 ];
1206- if (bli_get_default_entry (path , 256 )) {
1205+ char path [MENU_PATH_MAX ];
1206+ if (bli_get_default_entry (path , MENU_PATH_MAX )) {
12071207 // Find the entry with this path, expand directories, and get its index.
12081208 struct menu_entry * found_entry = NULL ;
12091209 size_t found_index = 0 ;
@@ -1497,7 +1497,7 @@ noreturn void _menu(bool first_run) {
14971497
14981498#if defined (UEFI )
14991499 // Save the entry's path so it can persist between boots.
1500- char entry_path [256 ];
1500+ char entry_path [MENU_PATH_MAX ];
15011501 size_t pos = 0 ;
15021502 get_entry_path (selected_menu_entry , entry_path , sizeof (entry_path ), & pos );
15031503 gRT -> SetVariable (L"LimineLastBootedEntry" ,
0 commit comments