summaryrefslogtreecommitdiff
path: root/fitz/stm_read.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-09-21 17:29:51 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-09-21 17:29:51 +0200
commitf783c31203be2dbd7a28c89557014f97a367bec9 (patch)
tree8faea8d21fa44b99226af34a13f33c6a0e1f7182 /fitz/stm_read.c
parentaa7668835afffd5a2a496a60ed6edb672f5af1a7 (diff)
downloadmupdf-f783c31203be2dbd7a28c89557014f97a367bec9.tar.xz
Add warning context.
Diffstat (limited to 'fitz/stm_read.c')
-rw-r--r--fitz/stm_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/stm_read.c b/fitz/stm_read.c
index 062916c5..23f758eb 100644
--- a/fitz/stm_read.c
+++ b/fitz/stm_read.c
@@ -192,11 +192,11 @@ fz_seek(fz_stream *stm, int offset, int whence)
if (whence == 0)
offset -= fz_tell(stm);
if (offset < 0)
- fz_warn("cannot seek backwards");
+ fz_warn(stm->ctx, "cannot seek backwards");
/* dog slow, but rare enough */
while (offset-- > 0)
fz_read_byte(stm);
}
else
- fz_warn("cannot seek");
+ fz_warn(stm->ctx, "cannot seek");
}