From: Cristy Date: Sat, 1 Oct 2016 14:25:53 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.3-2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8f161d61d6e36d027d44cd98002b822e4217add;p=imagemagick ... --- diff --git a/coders/xcf.c b/coders/xcf.c index f5ea575cd..1525f40fb 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -1326,8 +1326,7 @@ static Image *ReadXCFImage(const ImageInfo *image_info,ExceptionInfo *exception) saved_pos=TellBlob(image); /* seek to the layer offset */ if (SeekBlob(image,offset,SEEK_SET) != offset) - ThrowBinaryException(CorruptImageError,"NotEnoughPixelData", - image->filename); + ThrowReaderException(CorruptImageError,"NotEnoughPixelData"); /* read in the layer */ layer_ok=ReadOneLayer(image_info,image,&doc_info, &layer_info[current_layer],current_layer,exception);