diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-11-12 17:40:21 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-11-12 17:54:23 +0100 |
commit | e51354df45832a138dca9216408b3aea03030f49 (patch) | |
tree | 4bcdea163c68b2ccf12e4ca3478185ff10c94a03 /source/tools | |
parent | 947e070adb0f47a9297c18119edc221401abd1c7 (diff) | |
download | mupdf-e51354df45832a138dca9216408b3aea03030f49.tar.xz |
Fix 697728: Use UTF-8 strings in PDF portfolio functions.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/pdfportfolio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/tools/pdfportfolio.c b/source/tools/pdfportfolio.c index beeeaf23..1ffa2242 100644 --- a/source/tools/pdfportfolio.c +++ b/source/tools/pdfportfolio.c @@ -186,10 +186,9 @@ pdfportfolio_add(int argc, char **argv) buf = fz_read_file(ctx, filename); pdf_add_portfolio_entry(ctx, doc, - ename, strlen(ename), /* name */ - ename, strlen(ename), /* desc */ - ename, strlen(ename), /* filename */ - ename, strlen(ename), /* unifile */ + ename, /* name */ + ename, /* desc */ + filename, /* filename */ buf); fz_drop_buffer(ctx, buf); } |