summaryrefslogtreecommitdiff
path: root/pdf/pdf_xref.c
diff options
context:
space:
mode:
authorPaul Gardiner <paul@glidos.net>2012-07-18 14:45:28 +0100
committerPaul Gardiner <paul@glidos.net>2012-07-18 16:42:02 +0100
commit7eb8e51b6b889fa14aae39d282675b838aa43dc9 (patch)
tree4bf26eacd64612cbe2626263fb3ca344b53ef04e /pdf/pdf_xref.c
parentb03aad16426b89728c00e8e9888de7866dde03cc (diff)
downloadmupdf-7eb8e51b6b889fa14aae39d282675b838aa43dc9.tar.xz
Update pdf_to_utf8 to handle either a stream or a string
Also change first argument from fz_context to pdf_document in each of pdf_to_utf8, pdf_to_utf8_name, pdf_to_ucs2 and pdf_to_ucs2_name
Diffstat (limited to 'pdf/pdf_xref.c')
-rw-r--r--pdf/pdf_xref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c
index a1a19f22..4a03751c 100644
--- a/pdf/pdf_xref.c
+++ b/pdf/pdf_xref.c
@@ -1222,7 +1222,7 @@ pdf_meta(pdf_document *doc, int key, void *ptr, int size)
}
if (info && ptr && size)
{
- char *utf8 = pdf_to_utf8(doc->ctx, info);
+ char *utf8 = pdf_to_utf8(doc, info);
strncpy(ptr, utf8, size);
((char *)ptr)[size-1] = 0;
fz_free(doc->ctx, utf8);