We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e62bcfd commit 14b400eCopy full SHA for 14b400e
1 file changed
arch/UNZIP.LUA
@@ -59,9 +59,7 @@ function unzip(z, d, l, x)
59
-- ec = Expected crc32 checksum
60
local s, re, v, fl, cm, cr, cs, us, nl, el, fn, of, ec = f:read(30), "cur"
61
if not s or #s < 30 or not s:find("^PK\3\4") then break end
62
- v, fl, cm, _, _, ec, cs, us, nl, el = string.unpack("<HHHHHIIIHH", s, 5)
63
-
64
- --TODO: Fix filename length on 16-bit builds
+ v, fl, cm, _, _, ec, cs, us, nl, el = string.unpack("<HHHHHI4I4I4HH", s, 5)
65
fn, E = f:read(nl) D() -- read the filename
66
if el > 0 then f:seek(re, el) end
67
0 commit comments