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: removed cast error in wrapper_zip.c
Date Fri, 07 Aug 2015 22:01:33 GMT
Repository: incubator-corinthia
Updated Branches:
  refs/heads/master a146f6c7a -> 79101d29e


removed cast error in wrapper_zip.c


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

Branch: refs/heads/master
Commit: 79101d29ecb6be99ad3dc66ae7d66573e55f9c80
Parents: a146f6c
Author: jani <jani@apache.org>
Authored: Sat Aug 8 00:01:18 2015 +0200
Committer: jani <jani@apache.org>
Committed: Sat Aug 8 00:01:18 2015 +0200

----------------------------------------------------------------------
 DocFormats/platform/src/Wrapper_zip.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/79101d29/DocFormats/platform/src/Wrapper_zip.c
----------------------------------------------------------------------
diff --git a/DocFormats/platform/src/Wrapper_zip.c b/DocFormats/platform/src/Wrapper_zip.c
index e749fb4..c695472 100644
--- a/DocFormats/platform/src/Wrapper_zip.c
+++ b/DocFormats/platform/src/Wrapper_zip.c
@@ -346,8 +346,9 @@ DFextZipDirEntryP DFextZipWriteFile(DFextZipHandleP zipHandle, const char
*fileN
 
     // deflate buffer
     strm.avail_in = strm.avail_out = len;
-    strm.next_in  = buf;
-    strm.next_out = outbuf = xmalloc(len);
+    strm.next_in  = (Bytef *)buf;
+    outbuf        = xmalloc(len);
+    strm.next_out = (Bytef *)outbuf;
     deflate(&strm, Z_FINISH);
     deflateEnd(&strm);
     entryPtr->compressedSize = len - strm.avail_out;


Mime
View raw message