]> git.lizzy.rs Git - zlib.git/commit
Fix gzeof() to behave just like feof() when read is not past end of file.
authorMark Adler <madler@alumni.caltech.edu>
Thu, 13 Oct 2011 06:24:31 +0000 (23:24 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Mon, 12 Dec 2011 02:22:04 +0000 (18:22 -0800)
commit98f5779f4257682ba9b5fc490557618e3f15f84b
tree09082da8f556b04ba8aa299cf55eb979a3dfa063
parent70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f
Fix gzeof() to behave just like feof() when read is not past end of file.

Before, gzeof() would return true (accurately) when the last read request
went just up to the end of the uncompressed data.  In the analogous case,
feof() would return false, only returning true when a read request goes
past the end of the file.  This patch corrects gzeof() to behave in the
same way as feof(), as noted in the zlib.h documentation.
gzguts.h
gzlib.c
gzread.c