diff options
author | Andreas Schwab <[email protected]> | 2011-05-09 13:29:51 +0200 |
---|---|---|
committer | Andreas Schwab <[email protected]> | 2011-05-09 13:29:51 +0200 |
commit | 57679c8695cd63c63dd33ba548fefdef68a5cca5 (patch) | |
tree | 42c81670eea6a5455a5d098868210525a1c89fb2 /src/w32menu.c | |
parent | 5a7f0a3050ee49f4927c07ba96d02b7dae3a2751 (diff) |
* w32menu.c (set_frame_menubar): Fix submenu allocation.
Diffstat (limited to 'src/w32menu.c')
-rw-r--r-- | src/w32menu.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/w32menu.c b/src/w32menu.c index c8c6a319b4..ca763b553c 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -427,11 +427,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; - submenu_start = (int *) alloca (ASIZE (items) * sizeof (int *)); - submenu_end = (int *) alloca (ASIZE (items) * sizeof (int *)); + submenu_start = (int *) alloca (ASIZE (items) * sizeof (int)); + submenu_end = (int *) alloca (ASIZE (items) * sizeof (int)); submenu_n_panes = (int *) alloca (ASIZE (items) * sizeof (int)); - submenu_top_level_items - = (int *) alloca (ASIZE (items) * sizeof (int *)); + submenu_top_level_items = (int *) alloca (ASIZE (items) * sizeof (int)); init_menu_items (); for (i = 0; i < ASIZE (items); i += 4) { |