diff options
Diffstat (limited to 'stream/stm_misc.c')
-rw-r--r-- | stream/stm_misc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stream/stm_misc.c b/stream/stm_misc.c index 22d993d1..1098c016 100644 --- a/stream/stm_misc.c +++ b/stream/stm_misc.c @@ -124,10 +124,10 @@ fz_readall(fz_buffer **bufp, fz_stream *stm) real->refs = 1; real->ownsdata = 1; - real->bp = buf; - real->rp = buf; - real->wp = buf + pos; - real->ep = buf + pos; + real->bp = newbuf; + real->rp = newbuf; + real->wp = newbuf + pos; + real->ep = newbuf + pos; real->eof = 1; *bufp = real; |