From 2556d716979472d590f25e79258bfbde47637c5b Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 16 Dec 2018 17:24:07 -0500 Subject: [PATCH] https://imagemagick.org/discourse-server/viewtopic.php?f=1&t=35192 --- coders/miff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/miff.c b/coders/miff.c index f3d390bc3..f3815f683 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -2598,7 +2598,7 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info, bzip_info.avail_out=(unsigned int) BZipMaxExtent(packet_size* image->columns); code=BZ2_bzCompress(&bzip_info,BZ_FLUSH); - if (code != BZ_OK) + if (code < 0) status=MagickFalse; length=(size_t) (bzip_info.next_out-(char *) compress_pixels); if (length != 0) -- 2.40.0