From 041a1ef65bdbc23ac6774ef2b06f1fe6ddba5e4d Mon Sep 17 00:00:00 2001 From: Michał Cichoń Date: Thu, 10 Dec 2015 01:32:38 +0100 Subject: Fix crash for long printfs --- src/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/console.c b/src/console.c index 6fa0c79..07e3c37 100644 --- a/src/console.c +++ b/src/console.c @@ -412,7 +412,7 @@ void BarConsolePrint(const char* format, ...) void BarConsolePrintV(const char* format, va_list args) { char localBuffer[BAR_BUFFER_CAPACITY]; - size_t bufferSize = 0, i = 0; + size_t bufferSize = BAR_BUFFER_CAPACITY, i = 0; char* buffer = BarConsoleFormat(localBuffer, bufferSize, format, args); -- cgit v1.2.3