From: Yuuki Harano Date: Sun, 17 May 2020 11:04:18 +0000 (+0900) Subject: * src/pgtkmenu.c (set_frame_menubar): Suppress gcc warning X-Git-Tag: emacs-29.0.90~3803 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a167e23560b6de6eddb149f9332377c41f455b30;p=emacs.git * src/pgtkmenu.c (set_frame_menubar): Suppress gcc warning --- 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.