summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2023-02-02 16:03:24 +0100
committerMark Adler <git@madler.net>2023-07-29 23:44:25 -0700
commit379bbda363d1925bdaf50195e74052ead801490c (patch)
tree260dbacd83be9b861ead4c9b99d9503b37994b61
parente0bd0ad6e4d8afd2bc3d55d84d459a0e2c0e2890 (diff)
downloadzlib-379bbda363d1925bdaf50195e74052ead801490c.tar.gz
zlib-379bbda363d1925bdaf50195e74052ead801490c.tar.bz2
zlib-379bbda363d1925bdaf50195e74052ead801490c.zip
Fix typos found by codespell in minizip
-rw-r--r--contrib/minizip/MiniZip64_Changes.txt2
-rw-r--r--contrib/minizip/ioapi.h2
-rw-r--r--contrib/minizip/miniunz.c6
-rw-r--r--contrib/minizip/minizip.c4
-rw-r--r--contrib/minizip/unzip.c26
-rw-r--r--contrib/minizip/unzip.h12
-rw-r--r--contrib/minizip/zip.c18
-rw-r--r--contrib/minizip/zip.h2
8 files changed, 36 insertions, 36 deletions
diff --git a/contrib/minizip/MiniZip64_Changes.txt b/contrib/minizip/MiniZip64_Changes.txt
index 13a1bd9..3759468 100644
--- a/contrib/minizip/MiniZip64_Changes.txt
+++ b/contrib/minizip/MiniZip64_Changes.txt
@@ -1,5 +1,5 @@
1 1
2MiniZip 1.1 was derrived from MiniZip at version 1.01f 2MiniZip 1.1 was derived from MiniZip at version 1.01f
3 3
4Change in 1.0 (Okt 2009) 4Change in 1.0 (Okt 2009)
5 - **TODO - Add history** 5 - **TODO - Add history**
diff --git a/contrib/minizip/ioapi.h b/contrib/minizip/ioapi.h
index f6cc81b..bb2ad3c 100644
--- a/contrib/minizip/ioapi.h
+++ b/contrib/minizip/ioapi.h
@@ -82,7 +82,7 @@
82#include "mz64conf.h" 82#include "mz64conf.h"
83#endif 83#endif
84 84
85/* a type choosen by DEFINE */ 85/* a type chosen by DEFINE */
86#ifdef HAVE_64BIT_INT_CUSTOM 86#ifdef HAVE_64BIT_INT_CUSTOM
87typedef 64BIT_INT_CUSTOM_TYPE ZPOS64_T; 87typedef 64BIT_INT_CUSTOM_TYPE ZPOS64_T;
88#else 88#else
diff --git a/contrib/minizip/miniunz.c b/contrib/minizip/miniunz.c
index 52b0909..4bb080b 100644
--- a/contrib/minizip/miniunz.c
+++ b/contrib/minizip/miniunz.c
@@ -192,7 +192,7 @@ static void do_help(void) {
192 " -l list files\n" \ 192 " -l list files\n" \
193 " -d directory to extract into\n" \ 193 " -d directory to extract into\n" \
194 " -o overwrite files without prompting\n" \ 194 " -o overwrite files without prompting\n" \
195 " -p extract crypted file using password\n\n"); 195 " -p extract encrypted file using password\n\n");
196} 196}
197 197
198static void Display64BitsSize(ZPOS64_T n, int size_char) { 198static void Display64BitsSize(ZPOS64_T n, int size_char) {
@@ -248,7 +248,7 @@ static int do_list(unzFile uf) {
248 if (file_info.uncompressed_size>0) 248 if (file_info.uncompressed_size>0)
249 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size); 249 ratio = (uLong)((file_info.compressed_size*100)/file_info.uncompressed_size);
250 250
251 /* display a '*' if the file is crypted */ 251 /* display a '*' if the file is encrypted */
252 if ((file_info.flag & 1) != 0) 252 if ((file_info.flag & 1) != 0)
253 charCrypt='*'; 253 charCrypt='*';
254 254
@@ -574,7 +574,7 @@ int main(int argc, char *argv[]) {
574# endif 574# endif
575 575
576 strncpy(filename_try, zipfilename,MAXFILENAME-1); 576 strncpy(filename_try, zipfilename,MAXFILENAME-1);
577 /* strncpy doesnt append the trailing NULL, of the string is too long. */ 577 /* strncpy doesn't append the trailing NULL, of the string is too long. */
578 filename_try[ MAXFILENAME ] = '\0'; 578 filename_try[ MAXFILENAME ] = '\0';
579 579
580# ifdef USEWIN32IOAPI 580# ifdef USEWIN32IOAPI
diff --git a/contrib/minizip/minizip.c b/contrib/minizip/minizip.c
index f0480f2..f458c85 100644
--- a/contrib/minizip/minizip.c
+++ b/contrib/minizip/minizip.c
@@ -110,7 +110,7 @@ static int filetime(const char *f, tm_zip *tmzip, uLong *dt) {
110 len = MAXFILENAME; 110 len = MAXFILENAME;
111 111
112 strncpy(name, f,MAXFILENAME-1); 112 strncpy(name, f,MAXFILENAME-1);
113 /* strncpy doesnt append the trailing NULL, of the string is too long. */ 113 /* strncpy doesn't append the trailing NULL, of the string is too long. */
114 name[ MAXFILENAME ] = '\0'; 114 name[ MAXFILENAME ] = '\0';
115 115
116 if (name[len - 1] == '/') 116 if (name[len - 1] == '/')
@@ -311,7 +311,7 @@ int main(int argc, char *argv[]) {
311 311
312 zipok = 1 ; 312 zipok = 1 ;
313 strncpy(filename_try, argv[zipfilenamearg],MAXFILENAME-1); 313 strncpy(filename_try, argv[zipfilenamearg],MAXFILENAME-1);
314 /* strncpy doesnt append the trailing NULL, of the string is too long. */ 314 /* strncpy doesn't append the trailing NULL, of the string is too long. */
315 filename_try[ MAXFILENAME ] = '\0'; 315 filename_try[ MAXFILENAME ] = '\0';
316 316
317 len=(int)strlen(filename_try); 317 len=(int)strlen(filename_try);
diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c
index 8d010c5..c1c2986 100644
--- a/contrib/minizip/unzip.c
+++ b/contrib/minizip/unzip.c
@@ -49,12 +49,12 @@
49 Copyright (C) 2007-2008 Even Rouault 49 Copyright (C) 2007-2008 Even Rouault
50 50
51 51
52 Oct-2009 - Mathias Svensson - Removed cpl_* from symbol names (Even Rouault added them but since this is now moved to a new project (minizip64) I renamed them again). 52 Oct-2009 - Mathias Svensson - Removed cpl_* from symbol names (Even Rouault added them but since this is now moved to a new project (minizip64) I renamed them again).
53 Oct-2009 - Mathias Svensson - Fixed problem if uncompressed size was > 4G and compressed size was <4G 53 Oct-2009 - Mathias Svensson - Fixed problem if uncompressed size was > 4G and compressed size was <4G
54 should only read the compressed/uncompressed size from the Zip64 format if 54 should only read the compressed/uncompressed size from the Zip64 format if
55 the size from normal header was 0xFFFFFFFF 55 the size from normal header was 0xFFFFFFFF
56 Oct-2009 - Mathias Svensson - Applied some bug fixes from paches recived from Gilles Vollant 56 Oct-2009 - Mathias Svensson - Applied some bug fixes from patches received from Gilles Vollant
57 Oct-2009 - Mathias Svensson - Applied support to unzip files with compression mathod BZIP2 (bzip2 lib is required) 57 Oct-2009 - Mathias Svensson - Applied support to unzip files with compression method BZIP2 (bzip2 lib is required)
58 Patch created by Daniel Borca 58 Patch created by Daniel Borca
59 59
60 Jan-2010 - back to unzip and minizip 1.0 name scheme, with compatibility layer 60 Jan-2010 - back to unzip and minizip 1.0 name scheme, with compatibility layer
@@ -153,7 +153,7 @@ typedef struct
153 ZPOS64_T rest_read_compressed; /* number of byte to be decompressed */ 153 ZPOS64_T rest_read_compressed; /* number of byte to be decompressed */
154 ZPOS64_T rest_read_uncompressed;/*number of byte to be obtained after decomp*/ 154 ZPOS64_T rest_read_uncompressed;/*number of byte to be obtained after decomp*/
155 zlib_filefunc64_32_def z_filefunc; 155 zlib_filefunc64_32_def z_filefunc;
156 voidpf filestream; /* io structore of the zipfile */ 156 voidpf filestream; /* io structure of the zipfile */
157 uLong compression_method; /* compression method (0==store) */ 157 uLong compression_method; /* compression method (0==store) */
158 ZPOS64_T byte_before_the_zipfile;/* byte before the zipfile, (>0 for sfx)*/ 158 ZPOS64_T byte_before_the_zipfile;/* byte before the zipfile, (>0 for sfx)*/
159 int raw; 159 int raw;
@@ -166,7 +166,7 @@ typedef struct
166{ 166{
167 zlib_filefunc64_32_def z_filefunc; 167 zlib_filefunc64_32_def z_filefunc;
168 int is64bitOpenFunction; 168 int is64bitOpenFunction;
169 voidpf filestream; /* io structore of the zipfile */ 169 voidpf filestream; /* io structure of the zipfile */
170 unz_global_info64 gi; /* public global information */ 170 unz_global_info64 gi; /* public global information */
171 ZPOS64_T byte_before_the_zipfile;/* byte before the zipfile, (>0 for sfx)*/ 171 ZPOS64_T byte_before_the_zipfile;/* byte before the zipfile, (>0 for sfx)*/
172 ZPOS64_T num_file; /* number of the current file in the zipfile*/ 172 ZPOS64_T num_file; /* number of the current file in the zipfile*/
@@ -355,11 +355,11 @@ local int strcmpcasenosensitive_internal(const char* fileName1, const char* file
355#endif 355#endif
356 356
357/* 357/*
358 Compare two filename (fileName1,fileName2). 358 Compare two filenames (fileName1,fileName2).
359 If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp) 359 If iCaseSensitivity = 1, comparison is case sensitive (like strcmp)
360 If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi 360 If iCaseSensitivity = 2, comparison is not case sensitive (like strcmpi
361 or strcasecmp) 361 or strcasecmp)
362 If iCaseSenisivity = 0, case sensitivity is defaut of your operating system 362 If iCaseSensitivity = 0, case sensitivity is default of your operating system
363 (like 1 on Unix, 2 on Windows) 363 (like 1 on Unix, 2 on Windows)
364 364
365*/ 365*/
@@ -561,9 +561,9 @@ local unzFile unzOpenInternal(const void *path,
561 uLong uL; 561 uLong uL;
562 562
563 uLong number_disk; /* number of the current dist, used for 563 uLong number_disk; /* number of the current dist, used for
564 spaning ZIP, unsupported, always 0*/ 564 spanning ZIP, unsupported, always 0*/
565 uLong number_disk_with_CD; /* number the the disk with central dir, used 565 uLong number_disk_with_CD; /* number the the disk with central dir, used
566 for spaning ZIP, unsupported, always 0*/ 566 for spanning ZIP, unsupported, always 0*/
567 ZPOS64_T number_entry_CD; /* total number of entries in 567 ZPOS64_T number_entry_CD; /* total number of entries in
568 the central dir 568 the central dir
569 (same than number_entry on nospan) */ 569 (same than number_entry on nospan) */
@@ -810,7 +810,7 @@ extern int ZEXPORT unzGetGlobalInfo(unzFile file, unz_global_info* pglobal_info3
810 return UNZ_OK; 810 return UNZ_OK;
811} 811}
812/* 812/*
813 Translate date/time from Dos format to tm_unz (readable more easilty) 813 Translate date/time from Dos format to tm_unz (readable more easily)
814*/ 814*/
815local void unz64local_DosDateToTmuDate(ZPOS64_T ulDosDate, tm_unz* ptm) { 815local void unz64local_DosDateToTmuDate(ZPOS64_T ulDosDate, tm_unz* ptm) {
816 ZPOS64_T uDate; 816 ZPOS64_T uDate;
@@ -1607,7 +1607,7 @@ extern ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64(unzFile file) {
1607 buf contain buffer where data must be copied 1607 buf contain buffer where data must be copied
1608 len the size of buf. 1608 len the size of buf.
1609 1609
1610 return the number of byte copied if somes bytes are copied 1610 return the number of byte copied if some bytes are copied
1611 return 0 if the end of file was reached 1611 return 0 if the end of file was reached
1612 return <0 with error code if there is an error 1612 return <0 with error code if there is an error
1613 (UNZ_ERRNO for IO error, or zLib error for uncompress error) 1613 (UNZ_ERRNO for IO error, or zLib error for uncompress error)
diff --git a/contrib/minizip/unzip.h b/contrib/minizip/unzip.h
index 7b9884d..1410584 100644
--- a/contrib/minizip/unzip.h
+++ b/contrib/minizip/unzip.h
@@ -154,11 +154,11 @@ extern int ZEXPORT unzStringFileNameCompare(const char* fileName1,
154 const char* fileName2, 154 const char* fileName2,
155 int iCaseSensitivity); 155 int iCaseSensitivity);
156/* 156/*
157 Compare two filename (fileName1,fileName2). 157 Compare two filenames (fileName1,fileName2).
158 If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp) 158 If iCaseSensitivity = 1, comparison is case sensitive (like strcmp)
159 If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi 159 If iCaseSensitivity = 2, comparison is not case sensitive (like strcmpi
160 or strcasecmp) 160 or strcasecmp)
161 If iCaseSenisivity = 0, case sensitivity is defaut of your operating system 161 If iCaseSensitivity = 0, case sensitivity is default of your operating system
162 (like 1 on Unix, 2 on Windows) 162 (like 1 on Unix, 2 on Windows)
163*/ 163*/
164 164
@@ -304,7 +304,7 @@ extern int ZEXPORT unzGetCurrentFileInfo(unzFile file,
304 uLong commentBufferSize); 304 uLong commentBufferSize);
305/* 305/*
306 Get Info about the current file 306 Get Info about the current file
307 if pfile_info!=NULL, the *pfile_info structure will contain somes info about 307 if pfile_info!=NULL, the *pfile_info structure will contain some info about
308 the current file 308 the current file
309 if szFileName!=NULL, the filemane string will be copied in szFileName 309 if szFileName!=NULL, the filemane string will be copied in szFileName
310 (fileNameBufferSize is the size of the buffer) 310 (fileNameBufferSize is the size of the buffer)
@@ -384,7 +384,7 @@ extern int ZEXPORT unzReadCurrentFile(unzFile file,
384 buf contain buffer where data must be copied 384 buf contain buffer where data must be copied
385 len the size of buf. 385 len the size of buf.
386 386
387 return the number of byte copied if somes bytes are copied 387 return the number of byte copied if some bytes are copied
388 return 0 if the end of file was reached 388 return 0 if the end of file was reached
389 return <0 with error code if there is an error 389 return <0 with error code if there is an error
390 (UNZ_ERRNO for IO error, or zLib error for uncompress error) 390 (UNZ_ERRNO for IO error, or zLib error for uncompress error)
diff --git a/contrib/minizip/zip.c b/contrib/minizip/zip.c
index 7b559b7..ac4e243 100644
--- a/contrib/minizip/zip.c
+++ b/contrib/minizip/zip.c
@@ -14,7 +14,7 @@
14 Oct-2009 - Mathias Svensson - Added Zip64 Support when creating new file archives 14 Oct-2009 - Mathias Svensson - Added Zip64 Support when creating new file archives
15 Oct-2009 - Mathias Svensson - Did some code cleanup and refactoring to get better overview of some functions. 15 Oct-2009 - Mathias Svensson - Did some code cleanup and refactoring to get better overview of some functions.
16 Oct-2009 - Mathias Svensson - Added zipRemoveExtraInfoBlock to strip extra field data from its ZIP64 data 16 Oct-2009 - Mathias Svensson - Added zipRemoveExtraInfoBlock to strip extra field data from its ZIP64 data
17 It is used when recreting zip archive with RAW when deleting items from a zip. 17 It is used when recreating zip archive with RAW when deleting items from a zip.
18 ZIP64 data is automatically added to items that needs it, and existing ZIP64 data need to be removed. 18 ZIP64 data is automatically added to items that needs it, and existing ZIP64 data need to be removed.
19 Oct-2009 - Mathias Svensson - Added support for BZIP2 as compression mode (bzip2 lib is required) 19 Oct-2009 - Mathias Svensson - Added support for BZIP2 as compression mode (bzip2 lib is required)
20 Jan-2010 - back to unzip and minizip 1.0 name scheme, with compatibility layer 20 Jan-2010 - back to unzip and minizip 1.0 name scheme, with compatibility layer
@@ -48,7 +48,7 @@
48/* compile with -Dlocal if your debugger can't find static symbols */ 48/* compile with -Dlocal if your debugger can't find static symbols */
49 49
50#ifndef VERSIONMADEBY 50#ifndef VERSIONMADEBY
51# define VERSIONMADEBY (0x0) /* platform depedent */ 51# define VERSIONMADEBY (0x0) /* platform dependent */
52#endif 52#endif
53 53
54#ifndef Z_BUFSIZE 54#ifndef Z_BUFSIZE
@@ -139,20 +139,20 @@ typedef struct
139 uInt pos_in_buffered_data; /* last written byte in buffered_data */ 139 uInt pos_in_buffered_data; /* last written byte in buffered_data */
140 140
141 ZPOS64_T pos_local_header; /* offset of the local header of the file 141 ZPOS64_T pos_local_header; /* offset of the local header of the file
142 currenty writing */ 142 currently writing */
143 char* central_header; /* central header data for the current file */ 143 char* central_header; /* central header data for the current file */
144 uLong size_centralExtra; 144 uLong size_centralExtra;
145 uLong size_centralheader; /* size of the central header for cur file */ 145 uLong size_centralheader; /* size of the central header for cur file */
146 uLong size_centralExtraFree; /* Extra bytes allocated to the centralheader but that are not used */ 146 uLong size_centralExtraFree; /* Extra bytes allocated to the centralheader but that are not used */
147 uLong flag; /* flag of the file currently writing */ 147 uLong flag; /* flag of the file currently writing */
148 148
149 int method; /* compression method of file currenty wr.*/ 149 int method; /* compression method of file currently wr.*/
150 int raw; /* 1 for directly writing raw data */ 150 int raw; /* 1 for directly writing raw data */
151 Byte buffered_data[Z_BUFSIZE];/* buffer contain compressed data to be writ*/ 151 Byte buffered_data[Z_BUFSIZE];/* buffer contain compressed data to be writ*/
152 uLong dosDate; 152 uLong dosDate;
153 uLong crc32; 153 uLong crc32;
154 int encrypt; 154 int encrypt;
155 int zip64; /* Add ZIP64 extened information in the extra field */ 155 int zip64; /* Add ZIP64 extended information in the extra field */
156 ZPOS64_T pos_zip64extrainfo; 156 ZPOS64_T pos_zip64extrainfo;
157 ZPOS64_T totalCompressedData; 157 ZPOS64_T totalCompressedData;
158 ZPOS64_T totalUncompressedData; 158 ZPOS64_T totalUncompressedData;
@@ -166,10 +166,10 @@ typedef struct
166typedef struct 166typedef struct
167{ 167{
168 zlib_filefunc64_32_def z_filefunc; 168 zlib_filefunc64_32_def z_filefunc;
169 voidpf filestream; /* io structore of the zipfile */ 169 voidpf filestream; /* io structure of the zipfile */
170 linkedlist_data central_dir;/* datablock with central dir in construction*/ 170 linkedlist_data central_dir;/* datablock with central dir in construction*/
171 int in_opened_file_inzip; /* 1 if a file in the zip is currently writ.*/ 171 int in_opened_file_inzip; /* 1 if a file in the zip is currently writ.*/
172 curfile64_info ci; /* info on the file curretly writing */ 172 curfile64_info ci; /* info on the file currently writing */
173 173
174 ZPOS64_T begin_pos; /* position of the beginning of the zipfile */ 174 ZPOS64_T begin_pos; /* position of the beginning of the zipfile */
175 ZPOS64_T add_position_when_writing_offset; 175 ZPOS64_T add_position_when_writing_offset;
@@ -620,9 +620,9 @@ local int LoadCentralDirectoryRecord(zip64_internal* pziinit) {
620 uLong uL; 620 uLong uL;
621 621
622 uLong number_disk; /* number of the current dist, used for 622 uLong number_disk; /* number of the current dist, used for
623 spaning ZIP, unsupported, always 0*/ 623 spanning ZIP, unsupported, always 0*/
624 uLong number_disk_with_CD; /* number the the disk with central dir, used 624 uLong number_disk_with_CD; /* number the the disk with central dir, used
625 for spaning ZIP, unsupported, always 0*/ 625 for spanning ZIP, unsupported, always 0*/
626 ZPOS64_T number_entry; 626 ZPOS64_T number_entry;
627 ZPOS64_T number_entry_CD; /* total number of entries in 627 ZPOS64_T number_entry_CD; /* total number of entries in
628 the central dir 628 the central dir
diff --git a/contrib/minizip/zip.h b/contrib/minizip/zip.h
index 259efd2..5fc0841 100644
--- a/contrib/minizip/zip.h
+++ b/contrib/minizip/zip.h
@@ -131,7 +131,7 @@ extern zipFile ZEXPORT zipOpen64(const void *pathname, int append);
131 131
132/* Note : there is no delete function into a zipfile. 132/* Note : there is no delete function into a zipfile.
133 If you want delete file into a zipfile, you must open a zipfile, and create another 133 If you want delete file into a zipfile, you must open a zipfile, and create another
134 Of couse, you can use RAW reading and writing to copy the file you did not want delte 134 Of course, you can use RAW reading and writing to copy the file you did not want delete
135*/ 135*/
136 136
137extern zipFile ZEXPORT zipOpen2(const char *pathname, 137extern zipFile ZEXPORT zipOpen2(const char *pathname,