summaryrefslogtreecommitdiffstats
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)
commit4ebcee3015caa6c14ae484220d113c943bc1f736 (patch)
treeeac591eb656715b79fe2a093076c265770ecc205
parent51bce8152fb964591bf095135d365d1586291d1c (diff)
downloadtcl-4ebcee3015caa6c14ae484220d113c943bc1f736.zip
tcl-4ebcee3015caa6c14ae484220d113c943bc1f736.tar.gz
tcl-4ebcee3015caa6c14ae484220d113c943bc1f736.tar.bz2
One more place where the internal API change can be used easily.
-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",