From 8f5307ce0bb4e0db03916cf83c4e1fab6f7336fa Mon Sep 17 00:00:00 2001 From: dirk Date: Mon, 25 Apr 2016 23:47:01 +0200 Subject: [PATCH] Should use width instead of height. --- coders/flif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/flif.c b/coders/flif.c index 6324f44e0..9082f0845 100644 --- a/coders/flif.c +++ b/coders/flif.c @@ -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) { -- 2.40.0