From 7e1c05dd90cf42a308e854881ea3813aed000d2e Mon Sep 17 00:00:00 2001 From: Kuang-che Wu Date: Tue, 22 Nov 2016 02:17:24 +0800 Subject: fix menu buffer-overflow --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.c b/menu.c index 01acc31..b0c890d 100644 --- a/menu.c +++ b/menu.c @@ -1741,7 +1741,7 @@ initMenu(void) FILE *mf; MenuList *list; - w3mMenuList = New_N(MenuList, 3); + w3mMenuList = New_N(MenuList, 4); w3mMenuList[0].id = "Main"; w3mMenuList[0].menu = &MainMenu; w3mMenuList[0].item = MainMenuItem; -- cgit v1.2.3