diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2012-01-16 13:16:39 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2012-01-16 16:44:40 -0800 |
commit | 5a5dd2c793df39a3e1765abc3dfcad0852bdf6cb (patch) | |
tree | 122d0a277d35aa167247650a641bc6263b75ca1f /contrib/minizip/ioapi.c | |
parent | eb33abcc553dcd65ce1c4c7fc9d6bc096721d5bc (diff) | |
download | zlib-5a5dd2c793df39a3e1765abc3dfcad0852bdf6cb.tar.gz zlib-5a5dd2c793df39a3e1765abc3dfcad0852bdf6cb.tar.bz2 zlib-5a5dd2c793df39a3e1765abc3dfcad0852bdf6cb.zip |
Fix large-entry detection in minizip on 64-bit systems [Schiffer].
Diffstat (limited to '')
-rw-r--r-- | contrib/minizip/ioapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/minizip/ioapi.c b/contrib/minizip/ioapi.c index d4bc020..49ec64a 100644 --- a/contrib/minizip/ioapi.c +++ b/contrib/minizip/ioapi.c | |||
@@ -59,7 +59,7 @@ ZPOS64_T call_ztell64 (const zlib_filefunc64_32_def* pfilefunc,voidpf filestream | |||
59 | else | 59 | else |
60 | { | 60 | { |
61 | uLong tell_uLong = (*(pfilefunc->ztell32_file))(pfilefunc->zfile_func64.opaque,filestream); | 61 | uLong tell_uLong = (*(pfilefunc->ztell32_file))(pfilefunc->zfile_func64.opaque,filestream); |
62 | if ((tell_uLong) == ((uLong)-1)) | 62 | if ((tell_uLong) == MAXU32) |
63 | return (ZPOS64_T)-1; | 63 | return (ZPOS64_T)-1; |
64 | else | 64 | else |
65 | return tell_uLong; | 65 | return tell_uLong; |