aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuang-che Wu <kcwu@google.com>2016-11-21 18:17:24 +0000
committerKuang-che Wu <kcwu@google.com>2016-11-27 07:24:34 +0000
commit7e1c05dd90cf42a308e854881ea3813aed000d2e (patch)
tree74e80c1e3151778e6c937d57f092f7421e0cc300
parentUpdate ChangeLog (diff)
downloadw3m-7e1c05dd90cf42a308e854881ea3813aed000d2e.tar.gz
w3m-7e1c05dd90cf42a308e854881ea3813aed000d2e.zip
fix menu buffer-overflow
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
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;