aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/zip_extractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/zip_extractor.c')
-rw-r--r--src/plugins/zip_extractor.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/zip_extractor.c b/src/plugins/zip_extractor.c
index 518533d..8738295 100644
--- a/src/plugins/zip_extractor.c
+++ b/src/plugins/zip_extractor.c
@@ -91,9 +91,14 @@ EXTRACTOR_zip_extract (const unsigned char *data,
91 char *filecomment; 91 char *filecomment;
92 const unsigned char *pos; 92 const unsigned char *pos;
93 unsigned int offset, stop; 93 unsigned int offset, stop;
94 unsigned int name_length, extra_length, comment_length; 94 unsigned int name_length;
95 unsigned int extra_length;
96 unsigned int comment_length;
95 unsigned int filecomment_length; 97 unsigned int filecomment_length;
96 unsigned int entry_total, entry_count; 98 unsigned int entry_count;
99#if DEBUG_EXTRACT_ZIP
100 unsigned int entry_total;
101#endif
97 102
98 /* I think the smallest zipfile you can have is about 120 bytes */ 103 /* I think the smallest zipfile you can have is about 120 bytes */
99 if ((NULL == data) || (size < 100)) 104 if ((NULL == data) || (size < 100))
@@ -192,8 +197,8 @@ EXTRACTOR_zip_extract (const unsigned char *data,
192 fprintf (stderr, 197 fprintf (stderr,
193 "WARNING: May not be able to find all the files in this" 198 "WARNING: May not be able to find all the files in this"
194 " ZIP archive (no multi-volume support right now).\n"); 199 " ZIP archive (no multi-volume support right now).\n");
200 entry_total = pos[10] + (pos[11] << 8);
195#endif 201#endif
196 entry_total = pos[10] + (pos[11] << 8);
197 entry_count = 0; 202 entry_count = 0;
198 203
199 /* jump to start of central directory, ASSUMING that the starting disk that it's on is disk 0 */ 204 /* jump to start of central directory, ASSUMING that the starting disk that it's on is disk 0 */