diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-01-25 19:28:41 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1999-01-25 19:28:41 +0000 |
commit | fbc895c61cffb41a68d70d1caa4d429d4d0f72f8 (patch) | |
tree | 20737295b11ea6c7cebf85103b6eca769a0d5e86 /sys/lib/libz | |
parent | f20f9c111cc35df6e73122e5df2f502f5676ef4d (diff) |
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')
-rw-r--r-- | sys/lib/libz/zlib.h | 4 |
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 */ |