diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-03-19 22:51:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-03-19 22:51:38 +0000 |
commit | 9d03ae627d12d571ce19a841c469a99008523eed (patch) | |
tree | 8902ca677efb36be6956f938147b315546e65eda /src/or | |
parent | 29da03cbdc0c0bf46b54b30131632cdeed1adb63 (diff) | |
download | tor-9d03ae627d12d571ce19a841c469a99008523eed.tar.gz tor-9d03ae627d12d571ce19a841c469a99008523eed.zip |
Fix message when decompressing
svn:r214
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/buffers.c | 3 |
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; |