* xmenu.c (Fx_popup_dialog): Don't assume string is free of formats.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 20:26:55 +0000 (13:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 20:26:55 +0000 (13:26 -0700)
src/ChangeLog
src/xmenu.c

index 99cdde1..282b41a 100644 (file)
@@ -2,6 +2,8 @@
 
        Fix more problems found by GCC 4.6.0's static checks.
 
+       * xmenu.c (Fx_popup_dialog): Don't assume string is free of formats.
+
        * menu.c (Fx_popup_menu): Don't assume error_name lacks printf formats.
 
        * fns.c (Fstring_to_unibyte): Don't rely on undefined behavior
index 8ecef00..6e175e6 100644 (file)
@@ -341,7 +341,7 @@ for instance using the window manager, then this produces a quit and
     unbind_to (specpdl_count, Qnil);
     discard_menu_items ();
 
-    if (error_name) error (error_name);
+    if (error_name) error ("%s", error_name);
     return selection;
   }
 #endif