🐛 Fix reading of diffSourceLength in SSN files
This commit is contained in:
parent
2a9d191e5b
commit
f40a097b81
1 changed files with 1 additions and 1 deletions
|
@ -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
|
//size of source file, is actually a uint64 but we only read 32-bits
|
||||||
diffSourceLength = dv.getUint32(pos, true); pos += 8;
|
diffSourceLength = dv.getUint32(pos, true); pos += 8;
|
||||||
//size of destination file, is actually a uint64 but we only read 32-bits
|
//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 old file
|
||||||
//skip 20 bytes: hash of new file
|
//skip 20 bytes: hash of new file
|
||||||
pos += 40;
|
pos += 40;
|
||||||
|
|
Loading…
Reference in a new issue