🐛 Fix reading of diffSourceLength in SSN files

This commit is contained in:
C-3PO 2018-06-23 22:45:35 +02:00
parent 2a9d191e5b
commit f40a097b81
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -131,7 +131,7 @@ export default function readSsnFile(buffer: ArrayBuffer): ISsnFileEntry[] {
//size of source file, is actually a uint64 but we only read 32-bits
diffSourceLength = dv.getUint32(pos, true); pos += 8;
//size of destination file, is actually a uint64 but we only read 32-bits
diffDestLength = dv.getUint32(pos + 12, true); pos += 8;
diffDestLength = dv.getUint32(pos, true); pos += 8;
//skip 20 bytes: hash of old file
//skip 20 bytes: hash of new file
pos += 40;