diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-01-22 00:42:40 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-01-22 00:42:40 +0000 |
commit | 1dc4d9a0ceb5aacb7f44416950a7b794380b1a3a (patch) | |
tree | 6e46fb3a67ee240714b27a043bab39280dac3cc3 /src | |
parent | 2a908e5180ca3a81d9f2060f426c670885a097fd (diff) | |
download | tor-1dc4d9a0ceb5aacb7f44416950a7b794380b1a3a.tar.gz tor-1dc4d9a0ceb5aacb7f44416950a7b794380b1a3a.zip |
Fix dumb bug in unittests.
svn:r3409
Diffstat (limited to 'src')
-rw-r--r-- | src/or/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c index 6fad24af7a..c6a3b88e80 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -808,7 +808,7 @@ test_gzip(void) GZIP_METHOD)); test_assert(buf2); test_assert(!memcmp(buf2, "\037\213", 2)); /* Gzip magic. */ - test_eq(detect_compression_method(buf2, strlen(buf1)), GZIP_METHOD); + test_eq(detect_compression_method(buf2, len1), GZIP_METHOD); test_assert(!tor_gzip_uncompress(&buf3, &len2, buf2, len1, GZIP_METHOD)); test_assert(buf3); @@ -822,7 +822,7 @@ test_gzip(void) ZLIB_METHOD)); test_assert(buf2); test_assert(!memcmp(buf2, "\x78\xDA", 2)); /* deflate magic. */ - test_eq(detect_compression_method(buf2, strlen(buf1)), ZLIB_METHOD); + test_eq(detect_compression_method(buf2, len1), ZLIB_METHOD); test_assert(!tor_gzip_uncompress(&buf3, &len2, buf2, len1, ZLIB_METHOD)); test_assert(buf3); |