aboutsummaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gzlib.c')
-rw-r--r--gzlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gzlib.c b/gzlib.c
index c59bcda..b26b0c2 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -310,7 +310,7 @@ z_off64_t ZEXPORT gzseek64(file, offset, whence)
310 310
311 /* if within raw area while reading, just go there */ 311 /* if within raw area while reading, just go there */
312 if (state->mode == GZ_READ && state->how == COPY && 312 if (state->mode == GZ_READ && state->how == COPY &&
313 state->pos + offset >= state->raw) { 313 state->pos + offset >= 0) {
314 ret = LSEEK(state->fd, offset - state->have, SEEK_CUR); 314 ret = LSEEK(state->fd, offset - state->have, SEEK_CUR);
315 if (ret == -1) 315 if (ret == -1)
316 return -1; 316 return -1;