changeset 101215:877adea17756

* sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility. Reported by David Robinow <drobinow@gmail.com>.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 15 Jan 2009 18:04:34 +0000
parents 30b48e66ac86
children 178b2fad42c1
files src/ChangeLog src/sound.c
diffstat 2 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Jan 15 16:46:07 2009 +0000
+++ b/src/ChangeLog	Thu Jan 15 18:04:34 2009 +0000
@@ -1,3 +1,8 @@
+2009-01-15  Juanma Barranquero  <lekktu@gmail.com>
+
+	* sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
+	Reported by David Robinow <drobinow@gmail.com>.
+
 2009-01-15  Kenichi Handa  <handa@m17n.org>
 
 	* coding.c (detect_coding_system): Fix handling of
--- a/src/sound.c	Thu Jan 15 16:46:07 2009 +0000
+++ b/src/sound.c	Thu Jan 15 18:04:34 2009 +0000
@@ -1301,14 +1301,14 @@
 
 /* BEGIN: Windows specific functions */
 
-#define SOUND_WARNING(fun, error, text)		   \
-  {						   \
-    char buf[1024];				   \
-    char err_string[MAXERRORLENGTH];		   \
+#define SOUND_WARNING(fun, error, text)            \
+  {                                                \
+    char buf[1024];                                \
+    char err_string[MAXERRORLENGTH];               \
     fun (error, err_string, sizeof (err_string));  \
-    snprintf (buf, sizeof (buf), "%s\nError: %s",  \
-	      text, err_string);		   \
-    sound_warning (buf);			   \
+    _snprintf (buf, sizeof (buf), "%s\nError: %s", \
+	       text, err_string);		   \
+    sound_warning (buf);                           \
   }
 
 static int