From 88c9450f387d1a89aabcbadef504f3688586410c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 2 May 2011 23:12:50 -0700 Subject: [PATCH] * xmenu.c (set_frame_menubar): Fix typo: int * -> int (3 times). --- src/ChangeLog | 2 ++ src/xmenu.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index c237ba24b0f..6235e908cfd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-05-03 Paul Eggert + * xmenu.c (set_frame_menubar): Fix typo: int * -> int (3 times). + * coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601). * charset.h (struct charset.code_space): Now has 15 elements, not 16. diff --git a/src/xmenu.c b/src/xmenu.c index 35ad42970cf..2a4359fa84a 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -1012,10 +1012,10 @@ set_frame_menubar (FRAME_PTR f, int first_time, int deep_p) menu_items = f->menu_bar_vector; menu_items_allocated = VECTORP (menu_items) ? ASIZE (menu_items) : 0; subitems = ASIZE (items) / 4; - submenu_start = (int *) alloca (subitems * sizeof (int *)); - submenu_end = (int *) alloca (subitems * sizeof (int *)); + submenu_start = (int *) alloca (subitems * sizeof (int)); + submenu_end = (int *) alloca (subitems * sizeof (int)); submenu_n_panes = (int *) alloca (subitems * sizeof (int)); - submenu_top_level_items = (int *) alloca (subitems * sizeof (int *)); + submenu_top_level_items = (int *) alloca (subitems * sizeof (int)); init_menu_items (); for (i = 0; i < subitems; i++) { -- 2.39.2