The SSIZE_MAX fix didn't work on NSK, so fix it in a more-reliable
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Dec 2006 18:54:39 +0000 (18:54 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Dec 2006 18:54:39 +0000 (18:54 +0000)
commitc7ed171116c0d28bcca95438a8402542e136ad23
treeb7e5d309cd1db528a40138e6770606fa12f581a9
parent49e229553e9b28549f808fc6904811234946f8a9
The SSIZE_MAX fix didn't work on NSK, so fix it in a more-reliable
(albeit more-complicated) way.  Problem reported by Matthew Woehlke.
* gzip.h (read_buffer): New decl.
* unlzw.c (unlzw): Use read_buffer rather than read.
* zip.c (file_read): Likewise.
* util.c (copy, fill_inbuf): Likewise.
(read_buffer, write_buffer): New functions.
(write_buf): Use write_buffer rather than write.

Undo the previous SSIZE_MAX-related change; it didn't work.
* gzip.c: Include <limits.h>.
* util.c: Likewise.
* gzip.h: Don't include <limits.h>.
(INBUFSIZ): Don't worry about SSIZE_MAX here.
ChangeLog
gzip.c
gzip.h
unlzw.c
util.c
zip.c