aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu/menu.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-16 00:32:53 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-16 00:32:53 -0800
commit692f55c6ea720972780d47084a4a2146e56003d5 (patch)
treeb1a2dea2fcebe896b7c188c3d2b382d1ac04dad2 /com32/menu/menu.h
parentd3ed8cb31a485cb4263cd22ca5f60c73b6166752 (diff)
downloadsyslinux.git-692f55c6ea720972780d47084a4a2146e56003d5.tar.gz
syslinux.git-692f55c6ea720972780d47084a4a2146e56003d5.tar.xz
syslinux.git-692f55c6ea720972780d47084a4a2146e56003d5.zip
Get rid of 4096-entry limit in the simple menu systemsyslinux-3.62-pre8
Use a dynamic array instead of a static array which we would simply crash on overflow. Always make it a power-of-two sized so we don't end up doing a realloc() and a full array copy on every extend.
Diffstat (limited to 'com32/menu/menu.h')
-rw-r--r--com32/menu/menu.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/com32/menu/menu.h b/com32/menu/menu.h
index e8a8f031..87e3215c 100644
--- a/com32/menu/menu.h
+++ b/com32/menu/menu.h
@@ -79,8 +79,7 @@ extern struct messages messages[MSG_COUNT];
/* 2048 is the current definition inside syslinux */
#define MAX_CMDLINE_LEN 2048
-#define MAX_ENTRIES 4096 /* Oughta be enough for anybody */
-extern struct menu_entry menu_entries[];
+extern struct menu_entry *menu_entries;
extern struct menu_entry *menu_hotkeys[256];
struct menu_parameter {