[Scummvm-cvs-logs] CVS: scummvm/simon charset.cpp,1.34,1.35
Jonathan Gray
khalek at users.sourceforge.net
Fri Apr 8 18:53:12 CEST 2005
Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26313/simon
Modified Files:
charset.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: charset.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/charset.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- charset.cpp 1 Jan 2005 16:09:19 -0000 1.34
+++ charset.cpp 9 Apr 2005 01:52:43 -0000 1.35
@@ -223,7 +223,7 @@
va_list va;
va_start(va, s);
- vsprintf(buf, s, va);
+ vsnprintf(buf, STRINGBUFLEN, s, va);
va_end(va);
if (!_fcs_data_1[_fcs_unk_1]) {
More information about the Scummvm-git-logs
mailing list