From: cristy Date: Wed, 11 Apr 2012 17:24:36 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5834 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d18ecf902ee4a66c44876ee2a9b727365b28608e;p=imagemagick --- 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);