diff options
author | D G Turner | 2011-06-02 20:54:49 +0100 |
---|---|---|
committer | D G Turner | 2011-06-02 20:54:49 +0100 |
commit | 9c2759c1a74eee69b0b161c381adcd34d9709fd4 (patch) | |
tree | bc5b763bd498b5187f1853de181152da6685067f /engines/saga/sfuncs_ihnm.cpp | |
parent | 3a506073c33db6743c63023424d0638088a9fab5 (diff) | |
download | scummvm-rg350-9c2759c1a74eee69b0b161c381adcd34d9709fd4.tar.gz scummvm-rg350-9c2759c1a74eee69b0b161c381adcd34d9709fd4.tar.bz2 scummvm-rg350-9c2759c1a74eee69b0b161c381adcd34d9709fd4.zip |
SAGA: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
Diffstat (limited to 'engines/saga/sfuncs_ihnm.cpp')
-rw-r--r-- | engines/saga/sfuncs_ihnm.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/saga/sfuncs_ihnm.cpp b/engines/saga/sfuncs_ihnm.cpp index 1a73677846..3fbf3b6e67 100644 --- a/engines/saga/sfuncs_ihnm.cpp +++ b/engines/saga/sfuncs_ihnm.cpp @@ -389,11 +389,10 @@ void Script::sfSetSpeechBox(SCRIPTFUNC_PARAMS) { void Script::sfDebugShowData(SCRIPTFUNC_PARAMS) { int16 param = thread->pop(); - char buf[50]; - snprintf(buf, 50, "Reached breakpoint %d", param); + Common::String buf = Common::String::format("Reached breakpoint %d", param); - _vm->_interface->setStatusText(buf); + _vm->_interface->setStatusText(buf.c_str()); } void Script::sfWaitFramesEsc(SCRIPTFUNC_PARAMS) { |