summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/inflator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/inflator.js b/core/inflator.js
index c85501f..e61a5bd 100644
--- a/core/inflator.js
+++ b/core/inflator.js
@@ -42,7 +42,7 @@ export default class Inflate {
}
this.strm.next_out = 0;
- this.strm.avail_out = this.chunkSize;
+ this.strm.avail_out = expected;
let ret = inflate(this.strm, 0); // Flush argument not used.
if (ret < 0) {