]> git.eshelyaron.com Git - emacs.git/commitdiff
* sound.c (sound_warning): Don't crash if arg contains a printf format.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 20:08:03 +0000 (13:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Apr 2011 20:08:03 +0000 (13:08 -0700)
src/ChangeLog
src/sound.c

index 3f2837d52f055c9c20b2047ad6b7abd3d4b3bd00..c46f6f37cde6ca32f2009213e6ee6ba58ea9e552 100644 (file)
@@ -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
index a2fe7ccc8ce9df6e7c88bfdc3602fd76c7e0ba28..a972809e2c7f0b39040b823e1466bc2ee85c804a 100644 (file)
@@ -344,7 +344,7 @@ sound_perror (const char *msg)
 static void
 sound_warning (const char *msg)
 {
-  message (msg);
+  message ("%s", msg);
 }