diff options
author | Michał Cichoń <michcic@gmail.com> | 2015-12-10 01:32:38 +0100 |
---|---|---|
committer | Michał Cichoń <michcic@gmail.com> | 2015-12-10 01:32:38 +0100 |
commit | 041a1ef65bdbc23ac6774ef2b06f1fe6ddba5e4d (patch) | |
tree | 40e8c06ea77ac61e1c203a0663e1bebc043888a7 /src | |
parent | fab63519d2d0225f2e2eed3fa01a74a5acb25d57 (diff) | |
download | pianobar-windows-041a1ef65bdbc23ac6774ef2b06f1fe6ddba5e4d.tar.gz pianobar-windows-041a1ef65bdbc23ac6774ef2b06f1fe6ddba5e4d.tar.bz2 pianobar-windows-041a1ef65bdbc23ac6774ef2b06f1fe6ddba5e4d.zip |
Fix crash for long printfs
Diffstat (limited to 'src')
-rw-r--r-- | src/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |