[Scummvm-cvs-logs] CVS: scummvm/sound/softsynth mt32.cpp,1.8,1.9
Jonathan Gray
khalek at users.sourceforge.net
Fri Apr 8 18:53:14 CEST 2005
Update of /cvsroot/scummvm/scummvm/sound/softsynth
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26313/sound/softsynth
Modified Files:
mt32.cpp
Log Message:
Remove usage of vsprintf in favour of vsnprintf and make
more use of STRINGBUFLEN. Some ports may need a new stub for
this, discussed with Chrilith.
Index: mt32.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- mt32.cpp 12 Mar 2005 18:56:06 -0000 1.8
+++ mt32.cpp 9 Apr 2005 01:52:43 -0000 1.9
@@ -174,7 +174,7 @@
static void MT32_PrintDebug(void *userData, const char *fmt, va_list list) {
char buf[512];
if (((MidiDriver_MT32 *)userData)->_initialising) {
- vsprintf(buf, fmt, list);
+ vsnprintf(buf, 512, fmt, list);
buf[70] = 0; // Truncate to a reasonable length
drawMessage(1, buf);
}
More information about the Scummvm-git-logs
mailing list