]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 21 May 2014 16:50:56 +0000 (16:50 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 21 May 2014 16:50:56 +0000 (16:50 +0000)
coders/gradient.c

index 95511c8f789ec3fa6bde26463bb17d9a29cce73d..56655fc8008e2d5163c8db438b437178c64f2ea8 100644 (file)
@@ -143,9 +143,9 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info,
   if (GetPixelInfoIntensity(&start_color) > (Quantum) (QuantumRange/2))
     (void) CopyMagickString(colorname,"black",MaxTextExtent);
   if (icc_color == MagickFalse)
-    (void) sscanf(image_info->filename,"%*[^-]-%s",colorname);
+    (void) sscanf(image_info->filename,"%*[^-]-%[^-]",colorname);
   else
-    (void) sscanf(image_info->filename,"%*[^-]-%*[^-]-%s",colorname);
+    (void) sscanf(image_info->filename,"%*[^-]-%*[^-]-%[^-]",colorname);
   status=QueryColorCompliance(colorname,AllCompliance,&stop_color,exception);
   if (status == MagickFalse)
     {