[Scummvm-cvs-logs] CVS: scummvm/sword1 control.cpp,1.49,1.50

Jonathan Gray khalek at users.sourceforge.net
Fri Apr 8 18:53:17 CEST 2005


Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26313/sword1

Modified Files:
	control.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: control.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/control.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- control.cpp	7 Apr 2005 08:50:48 -0000	1.49
+++ control.cpp	9 Apr 2005 01:52:43 -0000	1.50
@@ -702,7 +702,7 @@
 	va_list va;
 
 	va_start(va, message);
-	vsprintf(buf, message, va);
+	vsnprintf(buf, STRINGBUFLEN, message, va);
 	va_end(va);
 
 	GUI::MessageDialog dialog(buf, "OK", altButton);





More information about the Scummvm-git-logs mailing list