summaryrefslogtreecommitdiff
path: root/contrib/minizip/minizip.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:27:17 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:27:17 -0700
commite0ff940e1adb68d3575705ebf1546d9f07ad3b4a (patch)
tree792ac6996d1225c0955027050296126bc8ff6e26 /contrib/minizip/minizip.c
parent7df877eccdd826e94df53215f65dee639428e83f (diff)
downloadzlib-1.2.3.8.tar.gz
zlib-1.2.3.8.tar.bz2
zlib-1.2.3.8.zip
zlib 1.2.3.8v1.2.3.8
Diffstat (limited to 'contrib/minizip/minizip.c')
-rw-r--r--contrib/minizip/minizip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/minizip/minizip.c b/contrib/minizip/minizip.c
index 4ce33af..ca26091 100644
--- a/contrib/minizip/minizip.c
+++ b/contrib/minizip/minizip.c
@@ -13,7 +13,7 @@
13*/ 13*/
14 14
15 15
16#ifndef _WIN32 16#ifndef _WIN32
17 #ifndef __USE_FILE_OFFSET64 17 #ifndef __USE_FILE_OFFSET64
18 #define __USE_FILE_OFFSET64 18 #define __USE_FILE_OFFSET64
19 #endif 19 #endif
@@ -219,15 +219,15 @@ int isLargeFile(const char* filename)
219 int n = fseeko64(pFile, 0, SEEK_END); 219 int n = fseeko64(pFile, 0, SEEK_END);
220 220
221 pos = ftello64(pFile); 221 pos = ftello64(pFile);
222 222
223 printf("File : %s is %lld bytes\n", filename, pos); 223 printf("File : %s is %lld bytes\n", filename, pos);
224 224
225 if(pos >= 0xffffffff) 225 if(pos >= 0xffffffff)
226 largeFile = 1; 226 largeFile = 1;
227 227
228 fclose(pFile); 228 fclose(pFile);
229 } 229 }
230 230
231 return largeFile; 231 return largeFile;
232} 232}
233 233
@@ -406,7 +406,7 @@ int main(argc,argv)
406*/ 406*/
407 if ((password != NULL) && (err==ZIP_OK)) 407 if ((password != NULL) && (err==ZIP_OK))
408 err = getFileCrc(filenameinzip,buf,size_buf,&crcFile); 408 err = getFileCrc(filenameinzip,buf,size_buf,&crcFile);
409 409
410 zip64 = isLargeFile(filenameinzip); 410 zip64 = isLargeFile(filenameinzip);
411 411
412 /* The path name saved, should not include a leading slash. */ 412 /* The path name saved, should not include a leading slash. */