From 8e0d212910a42b3f856bbaebed970e8ddc081ca3 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Mon, 26 Sep 2011 18:34:07 -0700 Subject: Simplify gzseek() now that raw after gzip is ignored. --- gzread.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gzread.c') 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); -- cgit v1.2.3-55-g6feb