From e806e2f2df36691b0ff37094a80d46fbc96767a6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 13 Mar 2012 13:07:10 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/mobi/reader/mobi8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/reader/mobi8.py b/src/calibre/ebooks/mobi/reader/mobi8.py index 86d123bf7a..ed0088c168 100644 --- a/src/calibre/ebooks/mobi/reader/mobi8.py +++ b/src/calibre/ebooks/mobi/reader/mobi8.py @@ -348,7 +348,7 @@ class Mobi8Reader(object): # 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 try: - fields = struct.unpack_from(b'>LLLL', data, 4) + fields = struct.unpack_from(b'>LLLLL', data, 4) except: fields = None # self.log.debug('Font record fields: %s'%(fields,))