aboutsummaryrefslogtreecommitdiff
path: root/src/common/unzip.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-12-21 11:56:19 +0000
committerChristian Grothoff <christian@grothoff.org>2009-12-21 11:56:19 +0000
commit46ca45416a029532dfea0208cf0264520474fa43 (patch)
treed532ee4086d36ec52239efa9b2494218e65024e2 /src/common/unzip.c
parent1968875f0e3c1b8d70a2b5365ac5e258c5189281 (diff)
downloadlibextractor-46ca45416a029532dfea0208cf0264520474fa43.tar.gz
libextractor-46ca45416a029532dfea0208cf0264520474fa43.zip
CID 32
Diffstat (limited to 'src/common/unzip.c')
-rw-r--r--src/common/unzip.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/unzip.c b/src/common/unzip.c
index ce53712..4de66fc 100644
--- a/src/common/unzip.c
+++ b/src/common/unzip.c
@@ -1290,14 +1290,12 @@ long EXTRACTOR_common_unzip_zlib_seek_file_func(voidpf opaque,
1290 1290
1291 switch (origin) { 1291 switch (origin) {
1292 case ZLIB_FILEFUNC_SEEK_SET: 1292 case ZLIB_FILEFUNC_SEEK_SET:
1293 if ( (offset > e->size) || 1293 if (offset > e->size)
1294 (offset < 0) )
1295 return -1; 1294 return -1;
1296 e->pos = offset; 1295 e->pos = offset;
1297 break; 1296 break;
1298 case ZLIB_FILEFUNC_SEEK_END: 1297 case ZLIB_FILEFUNC_SEEK_END:
1299 if ( (offset > e->size) || 1298 if (offset > e->size)
1300 (offset < 0) )
1301 return -1; 1299 return -1;
1302 e->pos = e->size - offset; 1300 e->pos = e->size - offset;
1303 break; 1301 break;