From 605e3ba2606efce832532771fc52f6d58abad514 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 3 Feb 2017 09:52:48 -0500 Subject: [PATCH] ... --- MagickCore/pixel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MagickCore/pixel.c b/MagickCore/pixel.c index 65c5695b5..fb6c00f7b 100644 --- a/MagickCore/pixel.c +++ b/MagickCore/pixel.c @@ -4453,7 +4453,10 @@ MagickExport void InitializePixelChannelMap(Image *image) SetPixelChannelAttributes(image,WriteMaskPixelChannel,CopyPixelTrait,n++); assert((n+image->number_meta_channels) < MaxPixelChannels); for (i=0; i < (ssize_t) image->number_meta_channels; i++) - SetPixelChannelAttributes(image,(PixelChannel) n,UpdatePixelTrait,n++); + { + SetPixelChannelAttributes(image,(PixelChannel) n,UpdatePixelTrait,n); + n++; + } image->number_channels=(size_t) n; if (image->debug != MagickFalse) LogPixelChannels(image); -- 2.40.0