aboutsummaryrefslogtreecommitdiff
path: root/scumm/debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/debugger.cpp')
-rw-r--r--scumm/debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp
index 056ade82ee..008c991b03 100644
--- a/scumm/debugger.cpp
+++ b/scumm/debugger.cpp
@@ -51,7 +51,7 @@ void CDECL debugC(int channel, const char *s, ...) {
return;
va_start(va, s);
- vsprintf(buf, s, va);
+ vsnprintf(buf, STRINGBUFLEN, s, va);
va_end(va);
debug(buf);