From f40a097b81aaa27ceb28bea3b9fe273a0f0a0613 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sat, 23 Jun 2018 22:45:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20reading=20of=20diffSourceL?= =?UTF-8?q?ength=20in=20SSN=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/readSsnFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssn/readSsnFile.ts b/src/ssn/readSsnFile.ts index 25d94c9..ad630fb 100644 --- a/src/ssn/readSsnFile.ts +++ b/src/ssn/readSsnFile.ts @@ -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;