Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8db52afe
Commit
8db52afe
authored
Jan 15, 2009
by
Juanma Barranquero
Browse files
* sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
Reported by David Robinow <drobinow@gmail.com>.
parent
6a6baf11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
src/ChangeLog
src/ChangeLog
+5
-0
src/sound.c
src/sound.c
+7
-7
No files found.
src/ChangeLog
View file @
8db52afe
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
...
...
src/sound.c
View file @
8db52afe
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment