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:58:13 GMT
Repository: incubator-corinthia
Updated Branches:
  refs/heads/master f53fed735 -> b8f3d21d0


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/b8f3d21d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/b8f3d21d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/b8f3d21d

Branch: refs/heads/master
Commit: b8f3d21d0eafa73b483e6731c80d042357d27269
Parents: f53fed7
Author: jani <jani@apache.org>
Authored: Fri Aug 14 23:57:54 2015 +0200
Committer: jani <jani@apache.org>
Committed: Fri Aug 14 23:57:54 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/b8f3d21d/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