summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
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)
commitc2c5a332c1228a18b01e4aa6fabcf7715ae3e4e2 (patch)
tree981d43d20fbf998c03ac000feca35fab23a0d6e4 /generic/tclZlib.c
parentabfbf846faa6345835e2c79c057bec034f479b24 (diff)
downloadtcl-c2c5a332c1228a18b01e4aa6fabcf7715ae3e4e2.zip
tcl-c2c5a332c1228a18b01e4aa6fabcf7715ae3e4e2.tar.gz
tcl-c2c5a332c1228a18b01e4aa6fabcf7715ae3e4e2.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/tclZlib.c')
-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