aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/outputBuffer.c')
-rw-r--r--src/outputBuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index 26dc50a91..f1d7201a6 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -26,10 +26,10 @@
#include "conf.h"
#include "os_compat.h"
-void initOutputBuffer(OutputBuffer * cb, OutputBufferChunk * chunks)
+void initOutputBuffer(OutputBuffer * cb)
{
memset(&cb->convState, 0, sizeof(ConvState));
- cb->chunks = chunks;
+ cb->chunks = xmalloc(buffered_chunks * sizeof(*cb->chunks));
cb->currentChunk = -1;
}