]> granicus.if.org Git - imagemagick/commitdiff
Should use width instead of height.
authordirk <dirk@git.imagemagick.org>
Mon, 25 Apr 2016 21:47:01 +0000 (23:47 +0200)
committerdirk <dirk@git.imagemagick.org>
Mon, 25 Apr 2016 21:47:01 +0000 (23:47 +0200)
coders/flif.c

index 6324f44e073080060308b76cb49b914a088fbed6..9082f0845b63fee703884bc412d2cad8b5414faf 100644 (file)
@@ -175,7 +175,7 @@ static Image *ReadFLIFImage(const ImageInfo *image_info,
     }
   image_count=flif_decoder_num_images(flifdec);
   flifimage=flif_decoder_get_image(flifdec,0);
-  length=sizeof(unsigned short)*4*flif_image_get_height(flifimage);
+  length=sizeof(unsigned short)*4*flif_image_get_width(flifimage);
   pixels=(unsigned short *) AcquireMagickMemory(length);
   if (pixels == (unsigned short *) NULL)
     {