From: Paul Eggert Date: Tue, 3 May 2011 06:12:50 +0000 (-0700) Subject: * xmenu.c (set_frame_menubar): Fix typo: int * -> int (3 times). X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~92^2~20 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=88c9450f387d1a89aabcbadef504f3688586410c;p=emacs.git * xmenu.c (set_frame_menubar): Fix typo: int * -> int (3 times). --- 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++) {