]> granicus.if.org Git - python/commitdiff
Fixes the last problem mentioned in issue1202.
authorGregory P. Smith <greg@mad-scientist.com>
Fri, 26 Jun 2009 07:50:21 +0000 (07:50 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Fri, 26 Jun 2009 07:50:21 +0000 (07:50 +0000)
Lib/zipfile.py

index 68885f9e0b8e1b4f0aca6b2e678635e89b8ecb5a..6ee9923e7963ea939c4052f84679ee964f1619bb 100644 (file)
@@ -1121,7 +1121,7 @@ class ZipFile:
         self.fp.flush()
         if zinfo.flag_bits & 0x08:
             # Write CRC and file sizes after the file data
-            self.fp.write(struct.pack("<lLL", zinfo.CRC, zinfo.compress_size,
+            self.fp.write(struct.pack("<LLL", zinfo.CRC, zinfo.compress_size,
                   zinfo.file_size))
         self.filelist.append(zinfo)
         self.NameToInfo[zinfo.filename] = zinfo