From a8f3575a309de4a4f57825babaa66a3f8726c83b Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 17 Aug 2015 19:53:56 +0100 Subject: 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. --- source/gprf/gprf-doc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') 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) -- cgit v1.2.3