Fix message when decompressing

svn:r214
This commit is contained in:
Nick Mathewson 2003-03-19 22:51:38 +00:00
parent 29da03cbdc
commit 9d03ae627d

View File

@ -194,7 +194,8 @@ int decompress_buf_to_buf(char **buf_in, int *buflen_in, int *buf_datalen_in,
case Z_STREAM_END:
log(LOG_DEBUG, "Uncompressed (%d/%d); filled (%d/%d)",
*buf_datalen_in-zstream->avail_in, *buf_datalen_in,
*buf_datalen_out-zstream->avail_out, *buf_datalen_out);
(*buflen_out-*buf_datalen_out)-zstream->avail_out,
(*buflen_out-*buf_datalen_out) );
memmove(*buf_in, zstream->next_in, zstream->avail_in);
*buf_datalen_in = zstream->avail_in;
*buf_datalen_out = *buflen_out - zstream->avail_out;