summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2003-12-16 22:35:50 +0000
committerhenning <henning@openbsd.org>2003-12-16 22:35:50 +0000
commit9f14e2bc5a4a727b2b32d33ed901794df7cebca4 (patch)
treeba3be8c45fd25be59dbfd49962d22c84ca55d26e
parentupdate to zlib 1.2.1 (diff)
downloadwireguard-openbsd-9f14e2bc5a4a727b2b32d33ed901794df7cebca4.tar.xz
wireguard-openbsd-9f14e2bc5a4a727b2b32d33ed901794df7cebca4.zip
total_in and total_out need to be off_t, not unsigned long.
some bugs return: i fixed the same some months ago when we had this other gzip there. this bug resulted in wrong size stats for > 4GB files, and in the case that the input file was > 4GB and could be compressed to < 4GB gzip not zipping it as it would grow in its eyes.
-rw-r--r--lib/libz/zlib.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libz/zlib.h b/lib/libz/zlib.h
index 91ec725e3b8..91f6b4b7fb1 100644
--- a/lib/libz/zlib.h
+++ b/lib/libz/zlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: zlib.h,v 1.6 2003/12/16 22:33:02 henning Exp $ */
+/* $OpenBSD: zlib.h,v 1.7 2003/12/16 22:35:50 henning Exp $ */
/* zlib.h -- interface of the 'zlib' general purpose compression library
version 1.2.1, November 17th, 2003
@@ -85,11 +85,11 @@ struct internal_state;
typedef struct z_stream_s {
Bytef *next_in; /* next input byte */
uInt avail_in; /* number of bytes available at next_in */
- uLong total_in; /* total nb of input bytes read so far */
+ z_off_t total_in; /* total nb of input bytes read so far */
Bytef *next_out; /* next output byte should be put there */
uInt avail_out; /* remaining free space at next_out */
- uLong total_out; /* total nb of bytes output so far */
+ z_off_t total_out; /* total nb of bytes output so far */
char *msg; /* last error message, NULL if no error */
struct internal_state FAR *state; /* not visible by applications */