corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject incubator-corinthia git commit: Corrected zip header (again
Date Fri, 14 Aug 2015 21:59:29 GMT
Repository: incubator-corinthia
Updated Branches:
  refs/heads/Release_0.1 a8c8be279 -> d9694aec0


Corrected zip header (again


Project: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/commit/d9694aec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/d9694aec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/d9694aec

Branch: refs/heads/Release_0.1
Commit: d9694aec0c1017f7a9efa292ef8c6afa2bda503a
Parents: a8c8be2
Author: jani <jani@apache.org>
Authored: Fri Aug 14 23:59:16 2015 +0200
Committer: jani <jani@apache.org>
Committed: Fri Aug 14 23:59:16 2015 +0200

----------------------------------------------------------------------
 DocFormats/platform/src/Wrapper_zip.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/d9694aec/DocFormats/platform/src/Wrapper_zip.c
----------------------------------------------------------------------
diff --git a/DocFormats/platform/src/Wrapper_zip.c b/DocFormats/platform/src/Wrapper_zip.c
index f67fd78..90f8d1e 100644
--- a/DocFormats/platform/src/Wrapper_zip.c
+++ b/DocFormats/platform/src/Wrapper_zip.c
@@ -127,6 +127,8 @@ static int readDirectory(FILE *zipFile, DFextZipHandleP zipHandle)
         return -1;
 
     // loop through all entries
+
+
     for (i = 0; i < zipHandle->zipFileCount; i++) {
         ZipDirectoryRecord *recDir   = (ZipDirectoryRecord *)workBuf;
         DFextZipDirEntry   *dirEntry = &zipHandle->zipFileEntries[i];
@@ -191,10 +193,12 @@ static void writeGlobalDirAndEndRecord(DFextZipHandleP zipHandle) {
     endRecord.zipCommentLength       = strlen(comment);
 
     dirRecord.signature              = ZipDirectoryRecord_signature;
-    dirRecord.versionMadeBy          = ZLIB_VERNUM;
-    dirRecord.versionNeededToExtract = dirRecord.generalPurposeBitFlag = dirRecord.lastModFileTime
       =
-    dirRecord.lastModFileDate        = dirRecord.crc32                 = dirRecord.extraFieldLength
      =
-    dirRecord.fileCommentLength      = dirRecord.diskNumberStart       = dirRecord.internalFileAttributes
=
+    dirRecord.versionMadeBy          = 0x2D;
+    dirRecord.versionNeededToExtract = 0x14;
+    dirRecord.lastModFileTime        = dirRecord.lastModFileDate   =
+    dirRecord.crc32                  = dirRecord.extraFieldLength       = dirRecord.fileCommentLength
=
+    dirRecord.diskNumberStart        = dirRecord.internalFileAttributes = 0;
+    dirRecord.generalPurposeBitFlag  = 0x0006;
     dirRecord.externalFileAttributes = 0;
 
     // loop through all directory entries, write to disk while collecting size


Mime
View raw message