]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 1 Oct 2016 14:25:53 +0000 (10:25 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 1 Oct 2016 14:25:53 +0000 (10:25 -0400)
coders/xcf.c

index f5ea575cd7d6502af2fbbf7b5bef99675b49cce8..1525f40fb8083c45e71e5770ad45b588a2fa0c81 100644 (file)
@@ -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);