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:02:56 GMT
Repository: incubator-corinthia
Updated Branches:
  refs/heads/Release_0.1 91cafbb11 -> a5544832d


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

Branch: refs/heads/Release_0.1
Commit: a5544832db2cd641876b16536aa4a9ad1fe777dd
Parents: 91cafbb
Author: jani <jani@apache.org>
Authored: Sat Aug 8 00:02:40 2015 +0200
Committer: jani <jani@apache.org>
Committed: Sat Aug 8 00:02:40 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/a5544832/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