diff options
Diffstat (limited to 'common/util.cpp')
-rw-r--r-- | common/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/util.cpp b/common/util.cpp index 13a810e20f..0b11cf0074 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -465,7 +465,7 @@ static void debugHelper(const char *in_buf, bool caret = true) { // Next, give the active engine (if any) a chance to augment the message if (g_engine) { - g_engine->errorString(in_buf, buf); + g_engine->errorString(in_buf, buf, STRINGBUFLEN); } else { strcpy(buf, in_buf); } @@ -583,7 +583,7 @@ void NORETURN error(const char *s, ...) { // Next, give the active engine (if any) a chance to augment the message if (g_engine) { - g_engine->errorString(buf_input, buf_output); + g_engine->errorString(buf_input, buf_output, STRINGBUFLEN); } else { strcpy(buf_output, buf_input); } |