From d18ecf902ee4a66c44876ee2a9b727365b28608e Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 11 Apr 2012 17:24:36 +0000 Subject: [PATCH] --- MagickCore/enhance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/enhance.c b/MagickCore/enhance.c index f7f8d2620..1d1727e13 100644 --- a/MagickCore/enhance.c +++ b/MagickCore/enhance.c @@ -330,8 +330,8 @@ MagickExport MagickBooleanType ClutImage(Image *image,const Image *clut_image, return(MagickFalse); if (IsGrayColorspace(image->colorspace) != MagickFalse) (void) TransformImageColorspace(image,sRGBColorspace,exception); - clut_map=(double *) AcquireQuantumMemory(MaxMap+1UL,GetPixelChannels(image)* - sizeof(*clut_map)); + clut_map=(double *) AcquireQuantumMemory(MaxMap+1UL, + GetPixelChannels(clut_image)*sizeof(*clut_map)); if (clut_map == (double *) NULL) ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", image->filename); -- 2.40.0