diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-02-25 14:08:53 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-02-29 15:52:53 +0100 |
commit | c2398cf7940e2533eb3158e93f271f471a4b369c (patch) | |
tree | 78c226f97d7bd8bd52cb95547ce3b68eede58b56 /source | |
parent | 709d87356dd875dcc38faff949abe320eeab9b5a (diff) | |
download | mupdf-c2398cf7940e2533eb3158e93f271f471a4b369c.tar.xz |
Fix silly typo. Set default output file for pdfwrite device.
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-device.c | 2 | ||||
-rw-r--r-- | source/tools/mudraw.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source/pdf/pdf-device.c b/source/pdf/pdf-device.c index 7cc4e5ea..56e37270 100644 --- a/source/pdf/pdf-device.c +++ b/source/pdf/pdf-device.c @@ -378,7 +378,7 @@ pdf_dev_add_font_res(fz_context *ctx, fz_device *dev, pdf_res *fres) int newmax = pdev->max_cid_fonts * 2; if (newmax == 0) newmax = 4; - pdev->font_indices = fz_resize_array(ctx, pdev->image_indices, newmax, sizeof(*pdev->font_indices)); + pdev->font_indices = fz_resize_array(ctx, pdev->font_indices, newmax, sizeof(*pdev->font_indices)); pdev->max_cid_fonts = newmax; } num = pdev->num_cid_fonts++; diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index d63f936c..fb253da4 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -1130,6 +1130,8 @@ int mudraw_main(int argc, char **argv) if (pdfout) { + if (!output) + output = "out.pdf"; pdf_save_document(ctx, pdfout, output, NULL); pdf_close_document(ctx, pdfout); } |