From: Cristy Date: Wed, 8 Feb 2017 18:55:47 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-8~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9db2ee3e31a947a9f905f76f2dcd1bac958eb62c;p=imagemagick ... --- diff --git a/coders/pdf.c b/coders/pdf.c index 3ed1417cc..dd3bc0c32 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -1195,6 +1195,7 @@ RestoreMSCWarning char basename[MagickPathExtent], buffer[MagickPathExtent], + *escape, date[MagickPathExtent], **labels, page_geometry[MagickPathExtent], @@ -1379,9 +1380,10 @@ RestoreMSCWarning (void) CopyMagickString(create_date,value,MagickPathExtent); (void) FormatMagickTime(time((time_t *) NULL),MagickPathExtent,timestamp); url=GetMagickHomeURL(); + escape=EscapeParenthesis(basename); i=FormatLocaleString(xmp_profile,MagickPathExtent,XMPProfile, - XMPProfileMagick,modify_date,create_date,timestamp,url, - EscapeParenthesis(basename),url); + XMPProfileMagick,modify_date,create_date,timestamp,url,escape,url); + escape=DestroyString(escape); url=DestroyString(url); (void) FormatLocaleString(buffer,MagickPathExtent,"/Length %.20g\n", (double) i); @@ -2836,8 +2838,9 @@ RestoreMSCWarning (void) FormatLocaleString(buffer,MagickPathExtent,"/ModDate (%s)\n",date); (void) WriteBlobString(image,buffer); url=GetMagickHomeURL(); - (void) FormatLocaleString(buffer,MagickPathExtent,"/Producer (%s)\n", - EscapeParenthesis(url)); + escape=EscapeParenthesis(url); + (void) FormatLocaleString(buffer,MagickPathExtent,"/Producer (%s)\n",escape); + escape=DestroyString(escape); url=DestroyString(url); (void) WriteBlobString(image,buffer); (void) WriteBlobString(image,">>\n");