summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2016-10-30 05:07:47 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2016-10-30 05:07:47 (GMT)
commit994e1d80624825828c7ce3cc7c04d80a5335a89c (patch)
treeeac591eb656715b79fe2a093076c265770ecc205 /generic
parentd44a63b65b53b305af0b2340510ab4c17397709b (diff)
downloadtcl-994e1d80624825828c7ce3cc7c04d80a5335a89c.zip
tcl-994e1d80624825828c7ce3cc7c04d80a5335a89c.tar.gz
tcl-994e1d80624825828c7ce3cc7c04d80a5335a89c.tar.bz2
One more place where the internal API change can be used easily.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclZlib.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index 53cd14b..e5a5946 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -3177,10 +3177,8 @@ ZlibTransformFlush(
* Get the bytes to go out of the compression engine.
*/
- cd->outStream.next_out = (Bytef *) cd->outBuffer;
- cd->outStream.avail_out = cd->outAllocated;
-
- e = deflate(&cd->outStream, flushType);
+ e = Deflate(&cd->outStream, cd->outBuffer, cd->outAllocated,
+ flushType, &len);
if (e != Z_OK && e != Z_BUF_ERROR) {
ConvertError(interp, e, cd->outStream.adler);
return TCL_ERROR;
@@ -3190,7 +3188,6 @@ ZlibTransformFlush(
* Write the bytes we've received to the next layer.
*/
- len = cd->outStream.next_out - (Bytef *) cd->outBuffer;
if (len > 0 && Tcl_WriteRaw(cd->parent, cd->outBuffer, len) < 0) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"problem flushing channel: %s",