Skip to content

Commit 08a5b2e

Browse files
author
Yuta Imaya
committed
fix "End of central directory record" size. (Thanks: @TakeshiOkamoto)
1 parent dda3f88 commit 08a5b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/zip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Zlib.Zip.prototype.compress = function() {
273273
}
274274

275275
// end of central directory
276-
endOfCentralDirectorySize = 46 + (this.comment ? this.comment.length : 0);
276+
endOfCentralDirectorySize = 22 + (this.comment ? this.comment.length : 0);
277277
output = new (USE_TYPEDARRAY ? Uint8Array : Array)(
278278
localFileSize + centralDirectorySize + endOfCentralDirectorySize
279279
);

0 commit comments

Comments
 (0)