X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Funzip.c;h=0aa231f0128ef92a5f0beb3c18cde1a7b044bab2;hb=166019baeee39e3867ecf6c4eddd0855dc3507a4;hp=509da18e1a1730ca01201a22b99d8c9fecad9867;hpb=b79146c85ed8f85acc80fe56534f72cd777f0b02;p=virtualjaguar diff --git a/src/unzip.c b/src/unzip.c index 509da18..0aa231f 100644 --- a/src/unzip.c +++ b/src/unzip.c @@ -13,21 +13,21 @@ // JLH 02/28/2010 Removed unnecessary cruft // +#include "unzip.h" + #include #include #include #include #include - -#include "unzip.h" #include "log.h" /* public globals */ int gUnzipQuiet = 0; /* flag controls error messages */ -#define ERROR_CORRUPT "The zipfile seems to be corrupt, please check it" -#define ERROR_FILESYSTEM "Your filesystem seems to be corrupt, please check it" +#define ERROR_CORRUPT "The zipfile seems to be corrupt, please check it" +#define ERROR_FILESYSTEM "Your filesystem seems to be corrupt, please check it" #define ERROR_UNSUPPORTED "The format of this zipfile is not supported, please recompress it" #define INFLATE_INPUT_BUFFER_MAX 16384 @@ -120,7 +120,7 @@ static int ecd_read(ZIP * zip) return -1; } - if (fread(buf, 1, buf_length, zip->fp) != buf_length) + if (fread(buf, 1, buf_length, zip->fp) != (unsigned int)buf_length) { free(buf); return -1;