#REFACTORING by stefan
class: ZipArchive
changed: #basicAddFile:withContents:compressMethod:asDirectory:
--- a/ZipArchive.st Fri Oct 21 10:31:56 2016 +0200
+++ b/ZipArchive.st Fri Oct 21 12:17:30 2016 +0200
@@ -4391,7 +4391,7 @@
data notEmptyOrNil ifTrue:[
"/ crc32 is always required (not as written in docu to be zero in case of uncompressed mode)
- zipEntry crc32:(ZipStream crc32BytesIn:data).
+ zipEntry crc32:(ZipStream crc32BytesIn:data from:1 to:data size crc:0).
].
(isDirectory not and:[ theCompressMethod == COMPRESSION_DEFLATED ]) ifTrue:[
|tmpCompressedDataSize|