aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-11-27 08:08:02 +0000
committerGitHub <noreply@github.com>2016-11-27 08:08:02 +0000
commit4da2745dc8490e830db4849b9ff79f3a0176cf12 (patch)
treed055adca5bd5e2f599f1f5f1f8848822fef98b49 /menu.c
parentAdd CVE IDs (diff)
parentfix menu buffer-overflow (diff)
downloadw3m-4da2745dc8490e830db4849b9ff79f3a0176cf12.tar.gz
w3m-4da2745dc8490e830db4849b9ff79f3a0176cf12.zip
Merge pull request #49 from kcwu/fix-menu-overflow
fix menu buffer-overflow
Diffstat (limited to 'menu.c')
-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;