projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e2d4a3
)
* sound.c (sound_warning): Don't crash if arg contains a printf format.
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 5 Apr 2011 20:08:03 +0000
(13:08 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 5 Apr 2011 20:08:03 +0000
(13:08 -0700)
src/ChangeLog
patch
|
blob
|
history
src/sound.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index 3f2837d52f055c9c20b2047ad6b7abd3d4b3bd00..c46f6f37cde6ca32f2009213e6ee6ba58ea9e552 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-2,6
+2,8
@@
Fix more problems found by GCC 4.6.0's static checks.
+ * sound.c (sound_warning): Don't crash if arg contains a printf format.
+
* image.c (tiff_error_handler, tiff_warning_handler): Mark as
printf-like functions.
(tiff_load): Add casts to remove these marks before passing them
diff --git
a/src/sound.c
b/src/sound.c
index a2fe7ccc8ce9df6e7c88bfdc3602fd76c7e0ba28..a972809e2c7f0b39040b823e1466bc2ee85c804a 100644
(file)
--- a/
src/sound.c
+++ b/
src/sound.c
@@
-344,7
+344,7
@@
sound_perror (const char *msg)
static void
sound_warning (const char *msg)
{
- message (msg);
+ message (
"%s",
msg);
}