summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-03-19 22:51:38 +0000
committerNick Mathewson <nickm@torproject.org>2003-03-19 22:51:38 +0000
commit9d03ae627d12d571ce19a841c469a99008523eed (patch)
tree8902ca677efb36be6956f938147b315546e65eda /src/or
parent29da03cbdc0c0bf46b54b30131632cdeed1adb63 (diff)
downloadtor-9d03ae627d12d571ce19a841c469a99008523eed.tar.gz
tor-9d03ae627d12d571ce19a841c469a99008523eed.zip
Fix message when decompressing
svn:r214
Diffstat (limited to 'src/or')
-rw-r--r--src/or/buffers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index c88fa62a11..b6faaa131b 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -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;