diff options
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) |