aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/menu.c b/src/menu.c
index 7a3edcb6f4f..d2486439fd0 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -176,6 +176,8 @@ save_menu_items (void)
176static void 176static void
177grow_menu_items (void) 177grow_menu_items (void)
178{ 178{
179 if ((INT_MAX - MENU_ITEMS_PANE_LENGTH) / 2 < menu_items_allocated)
180 memory_full ();
179 menu_items_allocated *= 2; 181 menu_items_allocated *= 2;
180 menu_items = larger_vector (menu_items, menu_items_allocated, Qnil); 182 menu_items = larger_vector (menu_items, menu_items_allocated, Qnil);
181} 183}
@@ -1145,13 +1147,13 @@ no quit occurs and `x-popup-menu' returns nil. */)
1145#else /* not HAVE_X_WINDOWS */ 1147#else /* not HAVE_X_WINDOWS */
1146 Lisp_Object bar_window; 1148 Lisp_Object bar_window;
1147 enum scroll_bar_part part; 1149 enum scroll_bar_part part;
1148 unsigned long time; 1150 Time time;
1149 void (*mouse_position_hook) (struct frame **, int, 1151 void (*mouse_position_hook) (struct frame **, int,
1150 Lisp_Object *, 1152 Lisp_Object *,
1151 enum scroll_bar_part *, 1153 enum scroll_bar_part *,
1152 Lisp_Object *, 1154 Lisp_Object *,
1153 Lisp_Object *, 1155 Lisp_Object *,
1154 unsigned long *) = 1156 Time *) =
1155 FRAME_TERMINAL (new_f)->mouse_position_hook; 1157 FRAME_TERMINAL (new_f)->mouse_position_hook;
1156 1158
1157 if (mouse_position_hook) 1159 if (mouse_position_hook)