summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/zipfile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 865267a..2819f1b 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -708,9 +708,10 @@ class ZipFile:
stringEndArchive64Locator, 0, pos2, 1)
self.fp.write(zip64locrec)
+ # XXX Why is `pos3` computed next? It's never referenced.
pos3 = self.fp.tell()
endrec = struct.pack(structEndArchive, stringEndArchive,
- 0, 0, count, count, pos2 - pos1, 0xffffffff, 0) # -1, 0)
+ 0, 0, count, count, pos2 - pos1, -1, 0)
self.fp.write(endrec)
else: