[Scummvm-cvs-logs] SF.net SVN: scummvm:[43827] scummvm/trunk/engines/groovie/script.cpp
jvprat at users.sourceforge.net
jvprat at users.sourceforge.net
Sun Aug 30 18:54:35 CEST 2009
Revision: 43827
http://scummvm.svn.sourceforge.net/scummvm/?rev=43827&view=rev
Author: jvprat
Date: 2009-08-30 16:54:35 +0000 (Sun, 30 Aug 2009)
Log Message:
-----------
Groovie: Replace sprintf() usage with String::printf()
Modified Paths:
--------------
scummvm/trunk/engines/groovie/script.cpp
Modified: scummvm/trunk/engines/groovie/script.cpp
===================================================================
--- scummvm/trunk/engines/groovie/script.cpp 2009-08-30 16:46:24 UTC (rev 43826)
+++ scummvm/trunk/engines/groovie/script.cpp 2009-08-30 16:54:35 UTC (rev 43827)
@@ -205,9 +205,7 @@
void Script::step() {
// Prepare the base debug string
- char debugstring[10];
- sprintf(debugstring, "@0x%04X: ", _currentInstruction);
- _debugString = _scriptFile + debugstring;
+ _debugString = _scriptFile + Common::String::printf("@0x%04X: ", _currentInstruction);
// Get the current opcode
byte opcode = readScript8bits();
@@ -215,8 +213,7 @@
opcode = opcode & 0x7F;
// Show the opcode debug string
- sprintf(debugstring, "op 0x%02X: ", opcode);
- _debugString += debugstring;
+ _debugString += Common::String::printf("op 0x%02X: ", opcode);
// Only output if we're not re-doing the previous instruction
if (_currentInstruction != _oldInstruction) {
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