diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2009-01-15 18:04:34 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2009-01-15 18:04:34 +0000 |
commit | 8db52afe7b198fac91b7d12c7a6adf4c5be46382 (patch) | |
tree | c5133865f40c75072d7bb69882753352826449d8 /src/sound.c | |
parent | 6a6baf114eeaf98192cf25cc0ebc0eccf2649f0d (diff) | |
download | emacs-8db52afe7b198fac91b7d12c7a6adf4c5be46382.tar.gz emacs-8db52afe7b198fac91b7d12c7a6adf4c5be46382.tar.bz2 emacs-8db52afe7b198fac91b7d12c7a6adf4c5be46382.zip |
* sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
Reported by David Robinow <drobinow@gmail.com>.
Diffstat (limited to 'src/sound.c')
-rw-r--r-- | src/sound.c | 14 |
1 files changed, 7 insertions, 7 deletions
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) /* 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 |