From b105ae5371549dce1b7e3d39fe130307f50d908a Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Wed, 24 Jan 2018 01:20:52 +0100 Subject: Cast data buffer to silence compiler warning. --- source/pdf/pdf-pkcs7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf') diff --git a/source/pdf/pdf-pkcs7.c b/source/pdf/pdf-pkcs7.c index f1e616c0..297b564b 100644 --- a/source/pdf/pdf-pkcs7.c +++ b/source/pdf/pdf-pkcs7.c @@ -89,7 +89,7 @@ typedef struct static int stream_read(BIO *b, char *buf, int size) { BIO_stream_data *data = (BIO_stream_data *)BIO_get_data(b); - return fz_read(data->ctx, data->stm, buf, size); + return fz_read(data->ctx, data->stm, (unsigned char *) buf, size); } static long stream_ctrl(BIO *b, int cmd, long arg1, void *arg2) -- cgit v1.2.3