diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-06-19 14:37:59 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-06-22 15:46:56 +0100 |
commit | c444b1b1a593ab253944cc2b33f22733115c0ff7 (patch) | |
tree | 2f6d52f6186e4c894bdf2741481bb7fd31cee4cb /source/tools/pdfportfolio.c | |
parent | 638384c10ff1b7b1233bec1d62db3e82cffeaafc (diff) | |
download | mupdf-c444b1b1a593ab253944cc2b33f22733115c0ff7.tar.xz |
Use unsigned char arrays in hexdumped data.
Diffstat (limited to 'source/tools/pdfportfolio.c')
-rw-r--r-- | source/tools/pdfportfolio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tools/pdfportfolio.c b/source/tools/pdfportfolio.c index a473968b..9f08cff1 100644 --- a/source/tools/pdfportfolio.c +++ b/source/tools/pdfportfolio.c @@ -244,7 +244,7 @@ int pdfportfolio_main(int argc, char **argv) /* add a blank page */ { const char *template = "BT /Tm 16 Tf 50 434 TD (This is a portfolio document.) Tj ET\n"; - const char *data; + const unsigned char *data; int size; fz_font *font; pdf_obj *font_obj, *page_obj; @@ -260,7 +260,7 @@ int pdfportfolio_main(int argc, char **argv) resources = pdf_add_object_drop(ctx, doc, pdf_new_dict(ctx, doc, 1)); pdf_dict_putp_drop(ctx, resources, "Font/Tm", font_obj); - contents = fz_new_buffer_from_shared_data(ctx, template, strlen(template)); + contents = fz_new_buffer_from_shared_data(ctx, (const unsigned char *)template, strlen(template)); page_obj = pdf_add_page(ctx, doc, &mediabox, 0, resources, contents); pdf_insert_page(ctx, doc, -1, page_obj); |