From 24c92d00919500a725a6d4c4797b48088b56431f Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sat, 9 Apr 2005 01:52:44 +0000 Subject: 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. svn-id: r17463 --- sound/softsynth/mt32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound/softsynth') diff --git a/sound/softsynth/mt32.cpp b/sound/softsynth/mt32.cpp index a62b2459f5..13502ed4df 100644 --- a/sound/softsynth/mt32.cpp +++ b/sound/softsynth/mt32.cpp @@ -174,7 +174,7 @@ static MT32Emu::File *MT32_OpenFile(void *userData, const char *filename, MT32Em 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); } -- cgit v1.2.3