@@ -, +, @@ --- Bzip2.xs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- a/Bzip2.xs +++ a/Bzip2.xs @@ -753,7 +753,7 @@ bzinflate (s, buf, output) if (s->stream.avail_out == 0) { /* out of space in the output buffer so make it bigger */ - Sv_Grow(output, SvLEN(output) + bufinc) ; + Sv_Grow(output, SvLEN(output) + bufinc +1) ; cur_length += increment ; s->stream.next_out = (char*) SvPVbyte_nolen(output) + cur_length ; increment = bufinc ; --