This commit is contained in:
Kovid Goyal 2012-03-13 13:07:10 +05:30
parent 41f168413b
commit e806e2f2df

View File

@ -348,7 +348,7 @@ class Mobi8Reader(object):
# bytes 16 - 23: ?? typically all 0x00 ?? Are these compression flags from zlib? # bytes 16 - 23: ?? typically all 0x00 ?? Are these compression flags from zlib?
# The compressed data begins with 2 bytes of header and has 4 bytes of checksum at the end # The compressed data begins with 2 bytes of header and has 4 bytes of checksum at the end
try: try:
fields = struct.unpack_from(b'>LLLL', data, 4) fields = struct.unpack_from(b'>LLLLL', data, 4)
except: except:
fields = None fields = None
# self.log.debug('Font record fields: %s'%(fields,)) # self.log.debug('Font record fields: %s'%(fields,))