diff options
-rw-r--r-- | source/cbz/mucbz.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 06b1080e..f018d1c9 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -281,9 +281,16 @@ cbz_read_zip_dir_imp(cbz_document *doc, int startoffset) doc->page = fz_malloc_array(ctx, count, sizeof(int)); for (i = 0; i < count; i++) + { for (k = 0; cbz_ext_list[k]; k++) + { if (strstr(doc->entry[i].name, cbz_ext_list[k])) + { doc->page[doc->page_count++] = i; + break; + } + } + } } static void |