From cc33f038d26fef62904becc3ba004d7525fb6418 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 22 Jun 2019 10:26:13 -0400 Subject: [PATCH] ... --- MagickCore/statistic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c index f533f9607..6bf4409f0 100644 --- a/MagickCore/statistic.c +++ b/MagickCore/statistic.c @@ -177,7 +177,7 @@ static PixelChannels **AcquirePixelThreadSet(const Image *images) if (pixels == (PixelChannels **) NULL) return((PixelChannels **) NULL); (void) memset(pixels,0,rows*sizeof(*pixels)); - columns=MaxPixelChannels; + columns=MagickMax(GetImageListLength(images),MaxPixelChannels); for (next=images; next != (Image *) NULL; next=next->next) columns=MagickMax(next->columns,columns); for (i=0; i < (ssize_t) rows; i++) -- 2.40.0