summaryrefslogtreecommitdiff
path: root/source/gprf
diff options
context:
space:
mode:
authorfred ross-perry <fredross-perry@Fred-Ross-Perrys-Computer.local>2016-09-21 10:54:30 -0700
committerRobin Watts <robin.watts@artifex.com>2016-09-21 18:59:48 +0100
commit19effcbc7a5c5ed948cf408e1f2d03b0ce1a1263 (patch)
tree5c7f8cff6c31e1253f8a68c2a4b0b25ce45e7774 /source/gprf
parent84909fb75915ccf5413a4e4ac3874a10801ae539 (diff)
downloadmupdf-19effcbc7a5c5ed948cf408e1f2d03b0ce1a1263.tar.xz
fix the quotes fix
Diffstat (limited to 'source/gprf')
-rw-r--r--source/gprf/gprf-doc.c4
1 files changed, 2 insertions, 2 deletions
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);
}