]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Wed, 15 Aug 2018 08:46:02 +0000 (04:46 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 15 Aug 2018 08:46:02 +0000 (04:46 -0400)
coders/gradient.c

index 2aad031a40b4623c7fdcd549d88d6308172591b0..7753bb97979a29b7c0aa759999d89799bb6a6fa1 100644 (file)
@@ -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)