From 19effcbc7a5c5ed948cf408e1f2d03b0ce1a1263 Mon Sep 17 00:00:00 2001 From: fred ross-perry Date: Wed, 21 Sep 2016 10:54:30 -0700 Subject: fix the quotes fix --- source/gprf/gprf-doc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/gprf') diff --git a/source/gprf/gprf-doc.c b/source/gprf/gprf-doc.c index 27dd773e..f5a6cbfd 100644 --- a/source/gprf/gprf-doc.c +++ b/source/gprf/gprf-doc.c @@ -568,7 +568,7 @@ generate_page(fz_context *ctx, gprf_page *page) { len = sizeof("-sPostRenderProfile=" QUOTE QUOTE); /* with quotes */ disp_profile = (char*)fz_malloc(ctx, len + strlen(doc->display_profile) + 1); - sprintf(disp_profile, "-sPostRenderProfile=" QUOTE "%s " QUOTE, doc->display_profile); + sprintf(disp_profile, "-sPostRenderProfile=" QUOTE "%s" QUOTE, doc->display_profile); } if (strlen(doc->print_profile) == 0) @@ -579,7 +579,7 @@ generate_page(fz_context *ctx, gprf_page *page) } else { - len = sizeof("-sOutputICCProfile=\"\""); /* with quotes */ + len = sizeof("-sOutputICCProfile=" QUOTE QUOTE); /* with quotes */ print_profile = (char*)fz_malloc(ctx, len + strlen(doc->print_profile) + 1); sprintf(print_profile, "-sOutputICCProfile=" QUOTE "%s" QUOTE, doc->print_profile); } -- cgit v1.2.3