diff options
author | Jordi Vilalta Prat | 2009-08-30 16:54:35 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2009-08-30 16:54:35 +0000 |
commit | 18c43c1d901405b55eb43bdbb9bdca4719828663 (patch) | |
tree | a353d5ae433979781bb43ad3fadafc6021f46aed /engines/groovie | |
parent | 7c32308349cb0c51fd8ec2de95e10062b1c422cb (diff) | |
download | scummvm-rg350-18c43c1d901405b55eb43bdbb9bdca4719828663.tar.gz scummvm-rg350-18c43c1d901405b55eb43bdbb9bdca4719828663.tar.bz2 scummvm-rg350-18c43c1d901405b55eb43bdbb9bdca4719828663.zip |
Groovie: Replace sprintf() usage with String::printf()
svn-id: r43827
Diffstat (limited to 'engines/groovie')
-rw-r--r-- | engines/groovie/script.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp index 2ef3df56a1..8924726e7f 100644 --- a/engines/groovie/script.cpp +++ b/engines/groovie/script.cpp @@ -205,9 +205,7 @@ void Script::directGameLoad(int slot) { 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 @@ void Script::step() { 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) { |