mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-01 08:17:38 +00:00
* sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
Reported by David Robinow <drobinow@gmail.com>.
This commit is contained in:
parent
6a6baf114e
commit
8db52afe7b
@ -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
|
||||
|
14
src/sound.c
14
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
|
||||
|
Loading…
Reference in New Issue
Block a user