diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_bootmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_bootmenu.c b/common/cmd_bootmenu.c index a3cbffa..7cb6876 100644 --- a/common/cmd_bootmenu.c +++ b/common/cmd_bootmenu.c @@ -64,12 +64,12 @@ enum bootmenu_key { static char *bootmenu_getoption(unsigned short int n) { - char name[MAX_ENV_SIZE] = "bootmenu_"; + char name[MAX_ENV_SIZE]; if (n > MAX_COUNT) return NULL; - sprintf(name + 9, "%d", n); + sprintf(name, "bootmenu_%d", n); return getenv(name); } |