From 628e7fef1fd24bad10c3a7323e9b7827ac537300 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 24 Oct 2011 22:15:53 +0530 Subject: [PATCH] Fix #880351 (Private bug) --- src/calibre/ebooks/mobi/writer2/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/writer2/main.py b/src/calibre/ebooks/mobi/writer2/main.py index 4339532ee3..655aa12c9e 100644 --- a/src/calibre/ebooks/mobi/writer2/main.py +++ b/src/calibre/ebooks/mobi/writer2/main.py @@ -601,7 +601,7 @@ class MobiWriter(object): Write the PalmDB header ''' title = ascii_filename(unicode(self.oeb.metadata.title[0])).replace( - ' ', '_')[:32] + ' ', '_')[:31] title = title + (b'\0' * (32 - len(title))) now = int(time.time()) nrecords = len(self.records)