diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-27 14:13:37 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-27 20:04:04 +0800 |
commit | 2945b540908b2c05cc730335829726675028475b (patch) | |
tree | 1983c02fa2aedf27487f2d7790ff8ff28c6d082d /source/fitz | |
parent | cf2272c69587196d2274e2f760265f05569e1d4f (diff) | |
download | mupdf-2945b540908b2c05cc730335829726675028475b.tar.xz |
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().
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/load-jpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |