summaryrefslogtreecommitdiff
path: root/ext/Compress-Raw-Zlib/Zlib.xs
diff options
context:
space:
mode:
authorPaul Marquess <pmqs@cpan.org>2009-03-21 13:31:59 +0000
committerCraig A. Berry <craigberry@mac.com>2009-03-22 17:47:02 -0500
commit7efcbeefb3812bba5ff588d00b309f3591f5df08 (patch)
treea0f797d48f1a25567739d32e8a3cb11f9366c49c /ext/Compress-Raw-Zlib/Zlib.xs
parentc966426a3bb6619c8372ea83168fa58260cf133b (diff)
downloadperl-7efcbeefb3812bba5ff588d00b309f3591f5df08.tar.gz
Fixes for ext/compress
Diffstat (limited to 'ext/Compress-Raw-Zlib/Zlib.xs')
-rw-r--r--ext/Compress-Raw-Zlib/Zlib.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Compress-Raw-Zlib/Zlib.xs b/ext/Compress-Raw-Zlib/Zlib.xs
index 9a117f3a41..944e3428e8 100644
--- a/ext/Compress-Raw-Zlib/Zlib.xs
+++ b/ext/Compress-Raw-Zlib/Zlib.xs
@@ -1338,7 +1338,7 @@ inflate (s, buf, output, eof=FALSE)
while (RETVAL == Z_OK) {
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 = (Bytef*) SvPVbyte_nolen(output) + cur_length ;
increment = bufinc ;