From: Cristy Date: Thu, 28 Sep 2017 12:09:20 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/786 X-Git-Tag: 7.0.7-5~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5873536f906192187896edfd434ddccebc0846b;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/786 --- diff --git a/coders/icon.c b/coders/icon.c index 3de0ad3b8..0cd79140b 100644 --- a/coders/icon.c +++ b/coders/icon.c @@ -991,7 +991,8 @@ static MagickBooleanType WriteICONImage(const ImageInfo *image_info, return(MagickFalse); } write_info=CloneImageInfo(image_info); - (void) CopyMagickString(write_info->filename,"PNG:",MagickPathExtent); + (void) CopyMagickString(write_info->magick,"PNG",MagickPathExtent); + length=0; /* Don't write any ancillary chunks except for gAMA */ (void) SetImageArtifact(write_image,"png:include-chunk","none,gama");