Skip to content

Commit d9384eb

Browse files
committed
buffer alloc.
1 parent b0d4e6b commit d9384eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/archivers/zip/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ module.exports = {
1313
SHORT: 2,
1414
SHORT_MASK: 0xffff,
1515
SHORT_SHIFT: 16,
16-
SHORT_ZERO: Buffer.alloc(Array(2)),
16+
SHORT_ZERO: Buffer.from(Array(2)),
1717
LONG: 4,
18-
LONG_ZERO: Buffer.alloc(Array(4)),
18+
LONG_ZERO: Buffer.from(Array(4)),
1919

2020
MIN_VERSION_INITIAL: 10,
2121
MIN_VERSION_DATA_DESCRIPTOR: 20,

0 commit comments

Comments
 (0)