From ffe8be6d377ca75bcfeb9f1359704f4e08e986be Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sun, 16 Jul 2017 10:59:49 +0300 Subject: [PATCH] Set correct offset to the beginning of end of CD record --- Sources/ZipEndOfCentralDirectory.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ZipEndOfCentralDirectory.swift b/Sources/ZipEndOfCentralDirectory.swift index 223c739b..29cb537a 100644 --- a/Sources/ZipEndOfCentralDirectory.swift +++ b/Sources/ZipEndOfCentralDirectory.swift @@ -52,7 +52,7 @@ struct ZipEndOfCentralDirectory { if zip64RecordExists { // We need to find Zip64 end of CD locator. // Back to start of end of CD record. - pointerData.index -= 22 + pointerData.index -= 20 // Zip64 locator takes exactly 20 bytes. pointerData.index -= 20