1 parent dda3f88 commit 08a5b2eCopy full SHA for 08a5b2e
src/zip.js
@@ -273,7 +273,7 @@ Zlib.Zip.prototype.compress = function() {
273
}
274
275
// end of central directory
276
- endOfCentralDirectorySize = 46 + (this.comment ? this.comment.length : 0);
+ endOfCentralDirectorySize = 22 + (this.comment ? this.comment.length : 0);
277
output = new (USE_TYPEDARRAY ? Uint8Array : Array)(
278
localFileSize + centralDirectorySize + endOfCentralDirectorySize
279
);
0 commit comments