From 2945b540908b2c05cc730335829726675028475b Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 27 Sep 2016 14:13:37 +0800 Subject: Bug 697152: jpeg: Use correct macro to get client data. In commit 6a8abce9603f69b57e407f0df4044be919f507d7 an agnostic memory handler was introduced for libjpeg. While this commit changed error_exit_dct() it forgot to make a similar change in error_exit(). --- source/fitz/load-jpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/fitz/load-jpeg.c b/source/fitz/load-jpeg.c index 40fcef51..c9b83465 100644 --- a/source/fitz/load-jpeg.c +++ b/source/fitz/load-jpeg.c @@ -64,7 +64,7 @@ fz_jpg_mem_term(struct jpeg_decompress_struct *cinfo) static void error_exit(j_common_ptr cinfo) { char msg[JMSG_LENGTH_MAX]; - fz_context *ctx = (fz_context *)cinfo->client_data; + fz_context *ctx = JZ_CTX_FROM_CINFO(cinfo); cinfo->err->format_message(cinfo, msg); fz_throw(ctx, FZ_ERROR_GENERIC, "jpeg error: %s", msg); -- cgit v1.2.3