From: Cristy Date: Wed, 15 Aug 2018 08:46:02 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-11~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b55821e50fd31af01690d95443a4592fa354b9db;p=imagemagick ... --- diff --git a/coders/gradient.c b/coders/gradient.c index 2aad031a4..7753bb979 100644 --- a/coders/gradient.c +++ b/coders/gradient.c @@ -196,8 +196,7 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info, SetImageInfoBlob(read_info,(void *) NULL,0); (void) CopyMagickString(colorname,image_info->filename,MagickPathExtent); (void) sscanf(image_info->filename,"%[^-]",colorname); - (void) FormatLocaleString(read_info->filename,MagickPathExtent,"xc:%s", - colorname); + (void) CopyMagickString(read_info->filename,colorname,MagickPathExtent); image=ReadXCImage(read_info,exception); read_info=DestroyImageInfo(read_info); if (image == (Image *) NULL)