From a167e23560b6de6eddb149f9332377c41f455b30 Mon Sep 17 00:00:00 2001 From: Yuuki Harano Date: Sun, 17 May 2020 20:04:18 +0900 Subject: [PATCH] * src/pgtkmenu.c (set_frame_menubar): Suppress gcc warning --- src/pgtkmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pgtkmenu.c b/src/pgtkmenu.c index acc9ab38273..d86612e13f0 100644 --- a/src/pgtkmenu.c +++ b/src/pgtkmenu.c @@ -325,7 +325,7 @@ set_frame_menubar (struct frame *f, bool first_time, bool deep_p) /* Save the frame's previous menu bar contents data. */ if (previous_menu_items_used) - memcpy (previous_items, XVECTOR (f->menu_bar_vector)->contents, + memcpy (previous_items, xvector_contents (f->menu_bar_vector), previous_menu_items_used * word_size); /* Fill in menu_items with the current menu bar contents. -- 2.39.5