diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-02-23 11:07:15 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-02-25 08:14:40 -0800 |
commit | d28129c2ff6a78c50877426f90167d63334ab18a (patch) | |
tree | a6cfaf83edf1af26359516cc99c8da366fa41390 /fitz/stm_read.c | |
parent | f86c02284c259b9034f324dffe76969efa8b2e42 (diff) | |
download | mupdf-d28129c2ff6a78c50877426f90167d63334ab18a.tar.xz |
Add fz_trim_buffer function, and call it.
Remove stray space at the end of buffers.
Diffstat (limited to 'fitz/stm_read.c')
-rw-r--r-- | fitz/stm_read.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fitz/stm_read.c b/fitz/stm_read.c index 81411c54..c2d375f3 100644 --- a/fitz/stm_read.c +++ b/fitz/stm_read.c @@ -125,6 +125,7 @@ fz_read_all(fz_stream *stm, int initial) fz_drop_buffer(ctx, buf); fz_rethrow(ctx); } + fz_trim_buffer(ctx, buf); return buf; } |