summaryrefslogtreecommitdiff
path: root/contrib/minizip/miniunz.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:27:26 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:27:26 -0700
commit7751bd4c715ea8478113e34b49b5a794a4642e8e (patch)
tree537ba82b3780f933c2f17028febd6fe3a2332190 /contrib/minizip/miniunz.c
parente0ff940e1adb68d3575705ebf1546d9f07ad3b4a (diff)
downloadzlib-1.2.3.9.tar.gz
zlib-1.2.3.9.tar.bz2
zlib-1.2.3.9.zip
zlib 1.2.3.9v1.2.3.9
Diffstat (limited to 'contrib/minizip/miniunz.c')
-rw-r--r--contrib/minizip/miniunz.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/contrib/minizip/miniunz.c b/contrib/minizip/miniunz.c
index cad8ae2..9ed009f 100644
--- a/contrib/minizip/miniunz.c
+++ b/contrib/minizip/miniunz.c
@@ -1,30 +1,30 @@
1/* 1/*
2 miniunz.c 2 miniunz.c
3 Version 1.1, January 7th, 2010 3 Version 1.1, February 14h, 2010
4 sample part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html ) 4 sample part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
5 5
6 Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html ) 6 Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )
7 7
8 Modifications of Unzip for Zip64 8 Modifications of Unzip for Zip64
9 Copyright (C) 2007-2008 Even Rouault 9 Copyright (C) 2007-2008 Even Rouault
10 10
11 Modifications for Zip64 support on both zip and unzip 11 Modifications for Zip64 support on both zip and unzip
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
19 #ifndef __USE_LARGEFILE64 19 #ifndef __USE_LARGEFILE64
20 #define __USE_LARGEFILE64 20 #define __USE_LARGEFILE64
21 #endif 21 #endif
22 #ifndef _LARGEFILE64_SOURCE 22 #ifndef _LARGEFILE64_SOURCE
23 #define _LARGEFILE64_SOURCE 23 #define _LARGEFILE64_SOURCE
24 #endif 24 #endif
25 #ifndef _FILE_OFFSET_BIT 25 #ifndef _FILE_OFFSET_BIT
26 #define _FILE_OFFSET_BIT 64 26 #define _FILE_OFFSET_BIT 64
27 #endif 27 #endif
28#endif 28#endif
29 29
30#include <stdio.h> 30#include <stdio.h>
@@ -133,11 +133,11 @@ int makedir (newdir)
133 return 0; 133 return 0;
134 134
135 buffer = (char*)malloc(len+1); 135 buffer = (char*)malloc(len+1);
136 if (buffer==NULL) 136 if (buffer==NULL)
137 { 137 {
138 printf("Error allocating memory\n"); 138 printf("Error allocating memory\n");
139 return UNZ_INTERNALERROR; 139 return UNZ_INTERNALERROR;
140 } 140 }
141 strcpy(buffer,newdir); 141 strcpy(buffer,newdir);
142 142
143 if (buffer[len-1] == '/') { 143 if (buffer[len-1] == '/') {