diff options
| author | Juanma Barranquero | 2009-01-15 18:04:34 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2009-01-15 18:04:34 +0000 |
| commit | 8db52afe7b198fac91b7d12c7a6adf4c5be46382 (patch) | |
| tree | c5133865f40c75072d7bb69882753352826449d8 | |
| parent | 6a6baf114eeaf98192cf25cc0ebc0eccf2649f0d (diff) | |
| download | emacs-8db52afe7b198fac91b7d12c7a6adf4c5be46382.tar.gz emacs-8db52afe7b198fac91b7d12c7a6adf4c5be46382.zip | |
* sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
Reported by David Robinow <drobinow@gmail.com>.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/sound.c | 14 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-01-15 Kenichi Handa <handa@m17n.org> | 6 | 2009-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 | ||
| 1314 | static int | 1314 | static int |