aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/sound.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 93aa087f2b9..6ec71d10cc2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-01-15 Juanma Barranquero <lekktu@gmail.com>
2
3 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4 Reported by David Robinow <drobinow@gmail.com>.
5
12009-01-15 Kenichi Handa <handa@m17n.org> 62009-01-15 Kenichi Handa <handa@m17n.org>
2 7
3 * coding.c (detect_coding_system): Fix handling of 8 * coding.c (detect_coding_system): Fix handling of
diff --git a/src/sound.c b/src/sound.c
index 8f54a7a5e98..2c723a4f99a 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -1301,14 +1301,14 @@ alsa_init (sd)
1301 1301
1302/* BEGIN: Windows specific functions */ 1302/* BEGIN: Windows specific functions */
1303 1303
1304#define SOUND_WARNING(fun, error, text) \ 1304#define SOUND_WARNING(fun, error, text) \
1305 { \ 1305 { \
1306 char buf[1024]; \ 1306 char buf[1024]; \
1307 char err_string[MAXERRORLENGTH]; \ 1307 char err_string[MAXERRORLENGTH]; \
1308 fun (error, err_string, sizeof (err_string)); \ 1308 fun (error, err_string, sizeof (err_string)); \
1309 snprintf (buf, sizeof (buf), "%s\nError: %s", \ 1309 _snprintf (buf, sizeof (buf), "%s\nError: %s", \
1310 text, err_string); \ 1310 text, err_string); \
1311 sound_warning (buf); \ 1311 sound_warning (buf); \
1312 } 1312 }
1313 1313
1314static int 1314static int