[Scummvm-cvs-logs] CVS: scummvm/base engine.cpp,1.35,1.36

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


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

Modified Files:
	engine.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: engine.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/engine.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- engine.cpp	26 Jan 2005 11:01:35 -0000	1.35
+++ engine.cpp	9 Apr 2005 01:52:42 -0000	1.36
@@ -92,7 +92,7 @@
 	va_list va;
 
 	va_start(va, s);
-	vsprintf(buf_input, s, va);
+	vsnprintf(buf_input, STRINGBUFLEN, s, va);
 	va_end(va);
 
 	if (g_engine) {





More information about the Scummvm-git-logs mailing list