[Scummvm-cvs-logs] CVS: scummvm/simon charset.cpp,1.23,1.24
Chris Apers
chrilith at users.sourceforge.net
Fri Nov 28 02:12:02 CET 2003
Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv9899
Modified Files:
charset.cpp
Log Message:
Don't overflow the stack
Index: charset.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/charset.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- charset.cpp 13 Nov 2003 00:00:48 -0000 1.23
+++ charset.cpp 28 Nov 2003 10:11:04 -0000 1.24
@@ -135,7 +135,12 @@
}
void SimonEngine::showMessageFormat(const char *s, ...) {
- char buf[1024], *str;
+#ifndef __PALM_OS__
+ char buf[1024];
+#else
+ char buf[256];
+#endif
+ char *str;
va_list va;
va_start(va, s);
More information about the Scummvm-git-logs
mailing list