aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/sfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga/sfuncs.cpp')
-rw-r--r--engines/saga/sfuncs.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp
index 70f987a129..c623349b7a 100644
--- a/engines/saga/sfuncs.cpp
+++ b/engines/saga/sfuncs.cpp
@@ -1553,18 +1553,15 @@ void Script::sfNull(SCRIPTFUNC_PARAMS) {
}
void Script::sfStub(const char *name, ScriptThread *thread, int nArgs) {
- char buf[256], buf1[100];
-
- snprintf(buf, 256, "STUB: %s(", name);
+ debugN(0, "STUB: %s(", name);
for (int i = 0; i < nArgs; i++) {
- snprintf(buf1, 100, "%d", thread->pop());
- strncat(buf, buf1, sizeof(buf) - strlen(buf) - 1);
+ debugN(0, "%d", thread->pop());
if (i + 1 < nArgs)
- strncat(buf, ", ", sizeof(buf) - strlen(buf) - 1);
+ debugN(0, ", ");
}
- debug(0, "%s)", buf);
+ debug(0, ")");
}
} // End of namespace Saga