diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:27:17 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:27:17 -0700 |
commit | e0ff940e1adb68d3575705ebf1546d9f07ad3b4a (patch) | |
tree | 792ac6996d1225c0955027050296126bc8ff6e26 /contrib/minizip/miniunz.c | |
parent | 7df877eccdd826e94df53215f65dee639428e83f (diff) | |
download | zlib-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/miniunz.c')
-rw-r--r-- | contrib/minizip/miniunz.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/minizip/miniunz.c b/contrib/minizip/miniunz.c index c0a07ab..cad8ae2 100644 --- a/contrib/minizip/miniunz.c +++ b/contrib/minizip/miniunz.c | |||
@@ -12,7 +12,7 @@ | |||
12 | Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) | 12 | Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #ifndef _WIN32 | 15 | #ifndef _WIN32 |
16 | #ifndef __USE_FILE_OFFSET64 | 16 | #ifndef __USE_FILE_OFFSET64 |
17 | #define __USE_FILE_OFFSET64 | 17 | #define __USE_FILE_OFFSET64 |
18 | #endif | 18 | #endif |
@@ -375,7 +375,7 @@ int do_extract_currentfile(uf,popt_extract_without_path,popt_overwrite,password) | |||
375 | 375 | ||
376 | printf("The file %s exists. Overwrite ? [y]es, [n]o, [A]ll: ",write_filename); | 376 | printf("The file %s exists. Overwrite ? [y]es, [n]o, [A]ll: ",write_filename); |
377 | ret = scanf("%1s",answer); | 377 | ret = scanf("%1s",answer); |
378 | if (ret != 1) | 378 | if (ret != 1) |
379 | { | 379 | { |
380 | exit(EXIT_FAILURE); | 380 | exit(EXIT_FAILURE); |
381 | } | 381 | } |
@@ -627,9 +627,9 @@ int main(argc,argv) | |||
627 | else if (opt_do_extract==1) | 627 | else if (opt_do_extract==1) |
628 | { | 628 | { |
629 | #ifdef _WIN32 | 629 | #ifdef _WIN32 |
630 | if (opt_extractdir && _chdir(dirname)) | 630 | if (opt_extractdir && _chdir(dirname)) |
631 | #else | 631 | #else |
632 | if (opt_extractdir && chdir(dirname)) | 632 | if (opt_extractdir && chdir(dirname)) |
633 | #endif | 633 | #endif |
634 | { | 634 | { |
635 | printf("Error changing into %s, aborting\n", dirname); | 635 | printf("Error changing into %s, aborting\n", dirname); |