From 9c2759c1a74eee69b0b161c381adcd34d9709fd4 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 2 Jun 2011 20:54:49 +0100 Subject: SAGA: Replace snprintf() usage with Common::String::format() Safer and less portability issues. --- engines/saga/sfuncs_ihnm.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/saga/sfuncs_ihnm.cpp') 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) { -- cgit v1.2.3