diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-08-17 19:53:56 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-08-17 19:53:56 +0100 |
commit | a8f3575a309de4a4f57825babaa66a3f8726c83b (patch) | |
tree | e470089c423994c3694c023de90237a9beb596cf | |
parent | 51b88bc1d432bf6d1bec55cc3957167a23f383de (diff) | |
download | mupdf-a8f3575a309de4a4f57825babaa66a3f8726c83b.tar.xz |
gprf: Minor fixes for neatness.
We should use a void *instance, not a void **instance.
And fz_read_string is more correct than fz_read_line.
-rw-r--r-- | source/gprf/gprf-doc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gprf/gprf-doc.c b/source/gprf/gprf-doc.c index f5429b97..2d77009b 100644 --- a/source/gprf/gprf-doc.c +++ b/source/gprf/gprf-doc.c @@ -492,7 +492,7 @@ generate_page(fz_context *ctx, gprf_page *page) fz_try(ctx) { #ifdef USE_GS_API - void **instance; + void *instance; int code; char *argv[] = { "gs", "-sDEVICE=gproof", NULL, "-o", NULL, NULL, NULL, NULL }; char arg_res[32]; @@ -793,7 +793,7 @@ gprf_open_document_with_stream(fz_context *ctx, fz_stream *file) doc->page_dims[i].w = fz_read_int32_le(ctx, file); doc->page_dims[i].h = fz_read_int32_le(ctx, file); } - fz_read_line(ctx, file, buf, sizeof(buf)); + fz_read_string(ctx, file, buf, sizeof(buf)); doc->pdf_filename = fz_strdup(ctx, buf); } fz_catch(ctx) |