From f783c31203be2dbd7a28c89557014f97a367bec9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 21 Sep 2011 17:29:51 +0200 Subject: Add warning context. --- fitz/filt_dctd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fitz/filt_dctd.c') diff --git a/fitz/filt_dctd.c b/fitz/filt_dctd.c index 7efbac91..fb0e77e7 100644 --- a/fitz/filt_dctd.c +++ b/fitz/filt_dctd.c @@ -52,7 +52,7 @@ static boolean fill_input_buffer(j_decompress_ptr cinfo) if (src->bytes_in_buffer == 0) { static unsigned char eoi[2] = { 0xFF, JPEG_EOI }; - fz_warn("premature end of file in jpeg"); + fz_warn(state->ctx, "premature end of file in jpeg"); src->next_input_byte = eoi; src->bytes_in_buffer = 2; } @@ -187,7 +187,7 @@ close_dctd(fz_stream *stm) if (setjmp(state->jb)) { state->chain->rp = state->chain->wp - state->cinfo.src->bytes_in_buffer; - fz_warn("jpeg error: %s", state->msg); + fz_warn(state->ctx, "jpeg error: %s", state->msg); goto skip; } -- cgit v1.2.3