From b5f51dde142012898056c698ac7506074c2af3ad Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 28 Jun 2019 10:06:29 +0200 Subject: [PATCH] Corrected the way the exception is being raised. --- coders/xcf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.40.0