diff options
Diffstat (limited to 'src/music')
-rw-r--r-- | src/music/os2_m.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/music/os2_m.cpp b/src/music/os2_m.cpp index 4461f003f..d4ceb23e8 100644 --- a/src/music/os2_m.cpp +++ b/src/music/os2_m.cpp @@ -27,7 +27,7 @@ static long CDECL MidiSendCommand(const char *cmd, ...) va_list va; char buf[512]; va_start(va, cmd); - vsprintf(buf, cmd, va); + vseprintf(buf, lastof(buf), cmd, va); va_end(va); return mciSendString(buf, NULL, 0, NULL, 0); } |