diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-08-21 01:49:52 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-08 18:53:00 +0800 |
commit | 2e4504f59986de056f8c60f76d3f9e8d56249b37 (patch) | |
tree | cc2a967b9d423cc5c7234644387a3f6d143d1e03 /source/html | |
parent | 8264d4968b5a981bd1485546ec96a4e874f11d74 (diff) | |
download | mupdf-2e4504f59986de056f8c60f76d3f9e8d56249b37.tar.xz |
EPUB and XPS may only be zip archives or directories.
Diffstat (limited to 'source/html')
-rw-r--r-- | source/html/epub-doc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c index ec506409..f179c5e1 100644 --- a/source/html/epub-doc.c +++ b/source/html/epub-doc.c @@ -443,7 +443,7 @@ epub_init(fz_context *ctx, fz_archive *zip) static fz_document * epub_open_document_with_stream(fz_context *ctx, fz_stream *file) { - return epub_init(ctx, fz_open_archive_with_stream(ctx, file)); + return epub_init(ctx, fz_open_zip_archive_with_stream(ctx, file)); } static fz_document * @@ -460,7 +460,7 @@ epub_open_document(fz_context *ctx, const char *filename) return epub_init(ctx, fz_open_directory(ctx, dirname)); } - return epub_init(ctx, fz_open_archive(ctx, filename)); + return epub_init(ctx, fz_open_zip_archive(ctx, filename)); } static int |