summaryrefslogtreecommitdiff
path: root/src/common/torgzip.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-09-08 06:47:33 +0000
committerNick Mathewson <nickm@torproject.org>2004-09-08 06:47:33 +0000
commitb6798866d058cd7ce69fc3c7944aff85a1693170 (patch)
treec640f4842163dcbc7e22065753c29de65a489168 /src/common/torgzip.h
parent6b9e27f0370f4d37a3aa956fecd01c7d3e9659a1 (diff)
downloadtor-b6798866d058cd7ce69fc3c7944aff85a1693170.tar.gz
tor-b6798866d058cd7ce69fc3c7944aff85a1693170.zip
Idiot-proof uncompress; make sure it always nul-terminates its output. Also, make all compression methods nonzero.
svn:r2334
Diffstat (limited to 'src/common/torgzip.h')
-rw-r--r--src/common/torgzip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/torgzip.h b/src/common/torgzip.h
index 61bb6adbcf..6c88f69275 100644
--- a/src/common/torgzip.h
+++ b/src/common/torgzip.h
@@ -10,7 +10,7 @@
#ifndef __TORGZIP_H
#define __TORGZIP_H
-typedef enum { GZIP_METHOD, ZLIB_METHOD } compress_method_t;
+typedef enum { GZIP_METHOD=1, ZLIB_METHOD=2 } compress_method_t;
int
tor_gzip_compress(char **out, size_t *out_len,