*** Lib/zipfile.py.orig Sat Jul 19 17:36:24 2003 --- Lib/zipfile.py Sat Jul 19 17:37:42 2003 *************** *** 101,110 **** if start >= 0: # Correct signature string was found endrec = struct.unpack(structEndArchive, data[start:start+22]) endrec = list(endrec) ! comment = data[start+22:] ! if endrec[7] == len(comment): # Comment length checks out # Append the archive comment and start offset ! endrec.append(comment) endrec.append(filesize - END_BLOCK + start) return endrec return # Error, return None --- 101,110 ---- if start >= 0: # Correct signature string was found endrec = struct.unpack(structEndArchive, data[start:start+22]) endrec = list(endrec) ! trailer = data[start+22:] ! if endrec[7] <= len(trailer): # Comment length checks out # Append the archive comment and start offset ! endrec.append(trailer[0:endrec[7]]) endrec.append(filesize - END_BLOCK + start) return endrec return # Error, return None