diff options
-rw-r--r-- | gui/console.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index bfce04cbf6..dc2c5c4f33 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -665,11 +665,11 @@ int ConsoleDialog::printFormat(int dummy, const char *format, ...) { } int ConsoleDialog::vprintFormat(int dummy, const char *format, va_list argptr) { - Common::String buffer = Common::String::vformat(format, argptr); + Common::String buf = Common::String::vformat(format, argptr); - print(buffer.c_str()); + print(buf.c_str()); - return buffer.size(); + return buf.size(); } void ConsoleDialog::printChar(int c) { |