diff options
Diffstat (limited to 'src/xmenu.c')
-rw-r--r-- | src/xmenu.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 4e7f07c375a..15aab98f9c5 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -354,15 +354,8 @@ save_menu_items () static void grow_menu_items () { - Lisp_Object old; - int old_size = menu_items_allocated; - old = menu_items; - menu_items_allocated *= 2; - - menu_items = Fmake_vector (make_number (menu_items_allocated), Qnil); - bcopy (XVECTOR (old)->contents, XVECTOR (menu_items)->contents, - old_size * sizeof (Lisp_Object)); + menu_items = larger_vector (menu_items, menu_items_allocated, Qnil); } /* Begin a submenu. */ |