mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
* menu.c (Fx_popup_menu): Don't assume error_name lacks printf formats.
This commit is contained in:
parent
da09ccce7a
commit
42eea0d01a
2 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
Fix more problems found by GCC 4.6.0's static checks.
|
||||
|
||||
* menu.c (Fx_popup_menu): Don't assume error_name lacks printf formats.
|
||||
|
||||
* fns.c (Fstring_to_unibyte): Don't rely on undefined behavior
|
||||
by passing a long int to a printf format expecting an int.
|
||||
|
||||
|
|
|
|||
|
|
@ -1340,7 +1340,7 @@ no quit occurs and `x-popup-menu' returns nil. */)
|
|||
|
||||
UNGCPRO;
|
||||
|
||||
if (error_name) error (error_name);
|
||||
if (error_name) error ("%s", error_name);
|
||||
return selection;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue