[Scummvm-cvs-logs] SF.net SVN: scummvm:[52388] scummvm/trunk/engines/m4/mads_logic.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Wed Aug 25 15:31:14 CEST 2010


Revision: 52388
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52388&view=rev
Author:   mthreepwood
Date:     2010-08-25 13:31:14 +0000 (Wed, 25 Aug 2010)

Log Message:
-----------
M4: Silence gcc warning

Original warning: "format not a string literal and no format arguments"

Modified Paths:
--------------
    scummvm/trunk/engines/m4/mads_logic.cpp

Modified: scummvm/trunk/engines/m4/mads_logic.cpp
===================================================================
--- scummvm/trunk/engines/m4/mads_logic.cpp	2010-08-25 13:26:30 UTC (rev 52387)
+++ scummvm/trunk/engines/m4/mads_logic.cpp	2010-08-25 13:31:14 UTC (rev 52388)
@@ -685,7 +685,7 @@
 		if (gDebugLevel > 0) {
 			if (param != UNUSED_VAL)
 				sprintf(opcodeBuffer + strlen(opcodeBuffer), "\t%d", param);
-			debugC(2, kDebugScript, opcodeBuffer);
+			debugC(2, kDebugScript, "%s", opcodeBuffer);
 		}
 	}
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list