diff options
Diffstat (limited to 'fitz/stm_buffer.c')
-rw-r--r-- | fitz/stm_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/stm_buffer.c b/fitz/stm_buffer.c index 23bbf635..c47c76fa 100644 --- a/fitz/stm_buffer.c +++ b/fitz/stm_buffer.c @@ -62,14 +62,14 @@ fz_growbuffer(fz_buffer *buf) if (!buf->ownsdata) { - fz_warn("assert: grow borrowed memory"); + fz_warn("assert: grow borrowed memory"); return; } buf->bp = fz_realloc(buf->bp, (ep * 3) / 2); buf->rp = buf->bp + rp; buf->wp = buf->bp + wp; - buf->ep = buf->bp + ep * 2; + buf->ep = buf->bp + (ep * 3) / 2; } void |