summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-08-12 09:55:32 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-08-12 09:55:32 (GMT)
commit799b962aea1e21eb1d360a56a574b4bb57dd2853 (patch)
tree981d43d20fbf998c03ac000feca35fab23a0d6e4 /generic
parentba9424ed9813043dd8948d59a0fd5aa83b0cd0ca (diff)
downloadtcl-799b962aea1e21eb1d360a56a574b4bb57dd2853.zip
tcl-799b962aea1e21eb1d360a56a574b4bb57dd2853.tar.gz
tcl-799b962aea1e21eb1d360a56a574b4bb57dd2853.tar.bz2
[Bug 3390073]: Return the correct length of written data for a compressing
transform, ensuring that buffers are written exactly once instead of multiple times or not at all (producing an invalid file).
Diffstat (limited to 'generic')
-rw-r--r--generic/tclZlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index be91365..81012dc 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -2460,7 +2460,7 @@ ZlibTransformOutput(
return -1;
}
- return toWrite - cd->outStream.avail_out;
+ return toWrite - cd->outStream.avail_in;
}
static int