projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42eea0d
)
* xmenu.c (Fx_popup_dialog): Don't assume string is free of formats.
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 5 Apr 2011 20:26:55 +0000
(13:26 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 5 Apr 2011 20:26:55 +0000
(13:26 -0700)
src/ChangeLog
patch
|
blob
|
history
src/xmenu.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index 99cdde192348fbc8f1d4ce74e225c3eb6bf189c9..282b41afd3ca7587fa67741bdb6c1a26778e3ac8 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-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
diff --git
a/src/xmenu.c
b/src/xmenu.c
index 8ecef00c88ea55c16ed9e6ff5f0441910ecf409d..6e175e69039f1b71794e6536f7bbf3ef94dfa407 100644
(file)
--- a/
src/xmenu.c
+++ b/
src/xmenu.c
@@
-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