summaryrefslogtreecommitdiff
path: root/stream/stm_write.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2008-10-02 23:33:59 +0200
committerTor Andersson <tor@ghostscript.com>2008-10-02 23:33:59 +0200
commit5966822947837d9421bd6490f252ba4d3d0e6447 (patch)
tree28ab0f3cb33be0b5f496939e812123046203fa01 /stream/stm_write.c
parentf9cd122bd24fdaf2793e996ca043259e3931346d (diff)
downloadmupdf-5966822947837d9421bd6490f252ba4d3d0e6447.tar.xz
Fix typo that prevented file buffers from rewinding when flushing a stream.
Diffstat (limited to 'stream/stm_write.c')
-rw-r--r--stream/stm_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stm_write.c b/stream/stm_write.c
index 2d687313..fd3eebd3 100644
--- a/stream/stm_write.c
+++ b/stream/stm_write.c
@@ -82,7 +82,7 @@ loop:
if (reason == fz_ioneedin)
{
- if (buf->rp > buf->ep)
+ if (buf->rp > buf->sp)
{
error = fz_rewindbuffer(buf);
if (error)