zlib 1.2.0.3

This commit is contained in:
Mark Adler
2011-09-09 23:22:21 -07:00
parent 8e34b3a802
commit 85e7d7d9ba
21 changed files with 123 additions and 393 deletions

5
gzio.c
View File

@@ -506,7 +506,8 @@ int ZEXPORT gzungetc(c, file)
s->back = c;
s->stream.total_out--;
s->last = (s->z_err == Z_STREAM_END);
if (s->z_eof) s->z_eof = 0;
if (s->last) s->z_err = Z_OK;
s->z_eof = 0;
return c;
}
@@ -812,7 +813,7 @@ z_off_t ZEXPORT gzseek (file, offset, whence)
if (s->outbuf == Z_NULL) return -1L;
}
if (offset && s->back != EOF) {
s->back == EOF;
s->back = EOF;
s->stream.total_out++;
offset--;
if (s->last) s->z_err = Z_STREAM_END;