[Scummvm-cvs-logs] CVS: scummvm/common engine.cpp,1.7,1.8

Max Horn fingolfin at users.sourceforge.net
Wed Nov 6 08:48:14 CET 2002


Update of /cvsroot/scummvm/scummvm/common
In directory usw-pr-cvs1:/tmp/cvs-serv29353

Modified Files:
	engine.cpp 
Log Message:
use strcat instead of sprintf+strlen

Index: engine.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/engine.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- engine.cpp	30 Sep 2002 06:09:07 -0000	1.7
+++ engine.cpp	6 Nov 2002 16:47:46 -0000	1.8
@@ -116,7 +116,7 @@
 
 	fprintf(stderr, "WARNING: %s!\n", buf);
 #if defined( USE_WINDBG )
-	sprintf(&buf[strlen(buf)], "\n");
+	strcat(buf, "\n");
 	OutputDebugString(buf);
 #endif
 }
@@ -137,7 +137,7 @@
 	printf("%s\n", buf);
 
 #if defined( USE_WINDBG )
-	sprintf(&buf[strlen(buf)], "\n");
+	strcat(buf, "\n");
 	OutputDebugString(buf);
 #endif
 





More information about the Scummvm-git-logs mailing list