diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2013-11-06 16:29:38 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-11-11 16:12:45 +0100 |
commit | 37e8045edfdeb071a930e447fa21a0c1dba50171 (patch) | |
tree | 732cd573002b930fa7ca1994c587dec3c52a7a08 /source | |
parent | b0d50099bbf6d5630dcb674f4a857d54857926f8 (diff) | |
download | mupdf-37e8045edfdeb071a930e447fa21a0c1dba50171.tar.xz |
Cast signature display name when reading it
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-pkcs7.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-pkcs7.c b/source/pdf/pdf-pkcs7.c index 2f2a3524..178d20ea 100644 --- a/source/pdf/pdf-pkcs7.c +++ b/source/pdf/pdf-pkcs7.c @@ -740,7 +740,7 @@ void pdf_sign_signature(pdf_document *doc, pdf_widget *widget, const char *sigfi fz_try(ctx) { - unsigned char *dn_str; + char *dn_str; pdf_signature_set_value(doc, ((pdf_annot *)widget)->obj, signer); dn = pdf_signer_designated_name(signer); @@ -762,7 +762,7 @@ void pdf_sign_signature(pdf_document *doc, pdf_widget *widget, const char *sigfi if (dn->c) fz_buffer_printf(ctx, fzbuf, ", c=%s", dn->c); - (void)fz_buffer_storage(ctx, fzbuf, &dn_str); + (void)fz_buffer_storage(ctx, fzbuf, (unsigned char **) &dn_str); pdf_set_signature_appearance(doc, (pdf_annot *)widget, dn->cn, dn_str, NULL); } fz_always(ctx) |