summaryrefslogtreecommitdiffstats
path: root/sys/lib/libz/zlib.h
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1999-01-25 19:28:38 +0000
committermickey <mickey@openbsd.org>1999-01-25 19:28:38 +0000
commitcfcfed0ac83bf724abf9c53ab9280cbd7a16e5d7 (patch)
tree4d86cfd6aea0ead15f9d1a442cb0335409983a59 /sys/lib/libz/zlib.h
parentDon't SEGV when ``set proctitle'' is used in the default (diff)
downloadwireguard-openbsd-cfcfed0ac83bf724abf9c53ab9280cbd7a16e5d7.tar.xz
wireguard-openbsd-cfcfed0ac83bf724abf9c53ab9280cbd7a16e5d7.zip
fix a real bad bug, which consists of return value from
read() /* oread() */ not being checked for errors/eof or not checked for error value (-1), which would result in bad kernels loaded, i/o errors not reported and such.
Diffstat (limited to 'sys/lib/libz/zlib.h')
-rw-r--r--sys/lib/libz/zlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libz/zlib.h b/sys/lib/libz/zlib.h
index 49f56b43bc6..9e231f491e9 100644
--- a/sys/lib/libz/zlib.h
+++ b/sys/lib/libz/zlib.h
@@ -67,11 +67,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 */
+ int avail_in; /* number of bytes available at next_in */
uLong 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 */
+ int avail_out; /* remaining free space at next_out */
uLong total_out; /* total nb of bytes output so far */
char *msg; /* last error message, NULL if no error */