diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-26 18:34:07 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-26 18:34:07 -0700 |
commit | 8e0d212910a42b3f856bbaebed970e8ddc081ca3 (patch) | |
tree | ba735fdcd32de6830eb6dc886837b12da3c0cba1 /gzread.c | |
parent | 50e440f081a0edc293dcfe7333a91d764e3d15cd (diff) | |
download | zlib-8e0d212910a42b3f856bbaebed970e8ddc081ca3.tar.gz zlib-8e0d212910a42b3f856bbaebed970e8ddc081ca3.tar.bz2 zlib-8e0d212910a42b3f856bbaebed970e8ddc081ca3.zip |
Simplify gzseek() now that raw after gzip is ignored.
Diffstat (limited to 'gzread.c')
-rw-r--r-- | gzread.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -144,10 +144,9 @@ local int gz_look(state) | |||
144 | return 0; | 144 | return 0; |
145 | } | 145 | } |
146 | 146 | ||
147 | /* doing raw i/o, save start of raw data for seeking, copy any leftover | 147 | /* doing raw i/o, copy any leftover input to output -- this assumes that |
148 | input to output -- this assumes that the output buffer is larger than | 148 | the output buffer is larger than the input buffer, which also assures |
149 | the input buffer, which also assures space for gzungetc() */ | 149 | space for gzungetc() */ |
150 | state->raw = state->pos; | ||
151 | state->next = state->out; | 150 | state->next = state->out; |
152 | if (strm->avail_in) { | 151 | if (strm->avail_in) { |
153 | memcpy(state->next, strm->next_in, strm->avail_in); | 152 | memcpy(state->next, strm->next_in, strm->avail_in); |