]> granicus.if.org Git - imagemagick/commitdiff
Corrected the way the exception is being raised.
authorDirk Lemstra <dirk@lemstra.org>
Fri, 28 Jun 2019 08:06:29 +0000 (10:06 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Fri, 28 Jun 2019 08:06:29 +0000 (10:06 +0200)
coders/xcf.c

index a4b06bd1c8dc9f22f2785b3be20d9deeefade05a..23cfe768c7dee205bc7a6d75358a78826ab3fc66 100644 (file)
@@ -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);