From: cristy Date: Fri, 1 Aug 2014 16:24:14 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d995bf67de64169a6436678a4c9d114abbf542f5;p=imagemagick --- diff --git a/coders/gradient.c b/coders/gradient.c index 7dfe4cb59..8773d9071 100644 --- a/coders/gradient.c +++ b/coders/gradient.c @@ -124,16 +124,16 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info, assert(exception->signature == MagickSignature); read_info=CloneImageInfo(image_info); SetImageInfoBlob(read_info,(void *) NULL,0); + (void) CopyMagickString(colorname,image_info->filename,MaxTextExtent); + (void) sscanf(image_info->filename,"%[^-]",colorname); (void) FormatLocaleString(read_info->filename,MaxTextExtent,"xc:%s", - image_info->filename); + colorname); image=ReadImage(read_info,exception); read_info=DestroyImageInfo(read_info); if (image == (Image *) NULL) return((Image *) NULL); (void) SetImageAlpha(image,(Quantum) TransparentAlpha,exception); (void) CopyMagickString(image->filename,image_info->filename,MaxTextExtent); - (void) CopyMagickString(colorname,image_info->filename,MaxTextExtent); - (void) sscanf(image_info->filename,"%[^-]",colorname); icc_color=MagickFalse; if (LocaleCompare(colorname,"icc") == 0) {