(svn r14542) -Codechange: replace some sprintf with s[en]printf to make sure they will not overflow their buffers.

This commit is contained in:
rubidium
2008-10-28 16:04:41 +00:00
parent da0a0ef8ca
commit 633b15caf3
4 changed files with 29 additions and 25 deletions

View File

@@ -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);
}