From: Dirk Lemstra Date: Fri, 28 Jun 2019 08:06:29 +0000 (+0200) Subject: Corrected the way the exception is being raised. X-Git-Tag: 7.0.8-51~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5f51dde142012898056c698ac7506074c2af3ad;p=imagemagick Corrected the way the exception is being raised. --- diff --git a/coders/xcf.c b/coders/xcf.c index a4b06bd1c..23cfe768c 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -1055,8 +1055,8 @@ static MagickBooleanType ReadOneLayer(const ImageInfo *image_info,Image* image, /* read in the hierarchy */ offset=SeekBlob(image, hierarchy_offset, SEEK_SET); if (offset != hierarchy_offset) - (void) ThrowMagickException(exception,GetMagickModule(), - CorruptImageError,"InvalidImageHeader","`%s'",image->filename); + ThrowBinaryException(CorruptImageError,"InvalidImageHeader", + image->filename); if (load_hierarchy (image, inDocInfo, outLayer, exception) == 0) return(MagickFalse);