diff options
Diffstat (limited to 'src/console.cpp')
-rw-r--r-- | src/console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console.cpp b/src/console.cpp index 29bab2f74..2274da64f 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -137,7 +137,7 @@ void CDECL IConsolePrintF(TextColour colour_code, const char *format, ...) char buf[ICON_MAX_STREAMSIZE]; va_start(va, format); - vsnprintf(buf, sizeof(buf), format, va); + vseprintf(buf, lastof(buf), format, va); va_end(va); IConsolePrint(colour_code, buf); |