[Scummvm-cvs-logs] CVS: scummvm/gui console.cpp,1.17,1.18
Pawel Kolodziejski
aquadran at users.sourceforge.net
Mon Dec 16 11:55:10 CET 2002
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv18261/gui
Modified Files:
console.cpp
Log Message:
fixed compilation under MSVC
Index: console.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/console.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- console.cpp 16 Dec 2002 06:21:07 -0000 1.17
+++ console.cpp 16 Dec 2002 19:53:39 -0000 1.18
@@ -153,7 +153,8 @@
nextLine();
int len = _promptEndPos - _promptStartPos;
- char str[len + 1];
+// char str[len + 1];
+ char str[1000];
if (len < 0) len = 0; // Prevent overflow from forced Ctrl-D deletion
@@ -409,7 +410,11 @@
{
char buf[2048];
+#if defined(WIN32)
+ int count = _vsnprintf(buf, sizeof(buf), format, argptr);
+#else
int count = vsnprintf(buf, sizeof(buf), format, argptr);
+#endif
print(buf);
return count;
}
More information about the Scummvm-git-logs
mailing list