summaryrefslogtreecommitdiff
path: root/gzread.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-26 18:34:07 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-26 18:34:07 -0700
commit8e0d212910a42b3f856bbaebed970e8ddc081ca3 (patch)
treeba735fdcd32de6830eb6dc886837b12da3c0cba1 /gzread.c
parent50e440f081a0edc293dcfe7333a91d764e3d15cd (diff)
downloadzlib-8e0d212910a42b3f856bbaebed970e8ddc081ca3.tar.gz
Simplify gzseek() now that raw after gzip is ignored.
Diffstat (limited to 'gzread.c')
-rw-r--r--gzread.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gzread.c b/gzread.c
index 960bf12..a41e5d9 100644
--- a/gzread.c
+++ b/gzread.c
@@ -144,10 +144,9 @@ local int gz_look(state)
return 0;
}
- /* doing raw i/o, save start of raw data for seeking, copy any leftover
- input to output -- this assumes that the output buffer is larger than
- the input buffer, which also assures space for gzungetc() */
- state->raw = state->pos;
+ /* doing raw i/o, copy any leftover input to output -- this assumes that
+ the output buffer is larger than the input buffer, which also assures
+ space for gzungetc() */
state->next = state->out;
if (strm->avail_in) {
memcpy(state->next, strm->next_in, strm->avail_in);