diff --git a/src/readSolidpkg.ts b/src/readSolidpkg.ts index 2efc6bb..b9ae32e 100644 --- a/src/readSolidpkg.ts +++ b/src/readSolidpkg.ts @@ -42,7 +42,7 @@ export default function readSolidpkg(buffer: Buffer) { //--------------- READ CENTRAL DIR --------------- //Go to start of central dir - pos -= -20 - centralDirSize; + pos -= 20 + centralDirSize; { const magicNum = dv.getUint32(pos, true); pos += 4;