diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-08-14 19:37:59 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-08-17 12:36:19 +0100 |
commit | dda017988150901dccd6b9dcb2823d7d8522433b (patch) | |
tree | f6ee6d696c5170ccc686abb77fe0939263b6053e /source/gprf | |
parent | 88003e46fa0db666d4cbccdfa81857ca7853e55f (diff) | |
download | mupdf-dda017988150901dccd6b9dcb2823d7d8522433b.tar.xz |
Add fz_read_string function to read a null terminated string
Use that within gproof. The existing use of fz_read_line was broken
and was resulting in bad values for separations.
Diffstat (limited to 'source/gprf')
-rw-r--r-- | source/gprf/gprf-doc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gprf/gprf-doc.c b/source/gprf/gprf-doc.c index 02562ca7..d0551816 100644 --- a/source/gprf/gprf-doc.c +++ b/source/gprf/gprf-doc.c @@ -556,7 +556,7 @@ read_tiles(fz_context *ctx, gprf_page *page) char blatter[4096]; int32_t rgba = fz_read_int32_le(ctx, file); int32_t cmyk = fz_read_int32_le(ctx, file); - fz_read_line(ctx, file, blatter, sizeof(blatter)); + fz_read_string(ctx, file, blatter, sizeof(blatter)); fz_add_separation(ctx, page->separations, rgba, cmyk, blatter); } |