diff --git a/ww/buffer_stream.c b/ww/buffer_stream.c index 8a5d93a8..517c33a0 100644 --- a/ww/buffer_stream.c +++ b/ww/buffer_stream.c @@ -65,7 +65,7 @@ shift_buffer_t *bufferStreamRead(buffer_stream_t *self,size_t bytes ) else { size_t needed = bytes - available; - size_t wi = 0; + size_t wi = available; setLen(result, bytes); uint8_t *dest = rawBuf(result);