Skip to content
Permalink
Browse files

...

  • Loading branch information...
Cristy
Cristy committed Feb 21, 2017
1 parent e5e87c0 commit f5d04fc678f67984a1f8c1008dc8eac8ee7e3629
Showing with 2 additions and 2 deletions.
  1. +2 −2 coders/mpc.c
@@ -842,9 +842,9 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception)
/*
Create image colormap.
*/
image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors+1,
image->colormap=(PixelPacket *) AcquireQuantumMemory(image->colors+1,
sizeof(*image->colormap));
if (image->colormap == (PixelInfo *) NULL)
if (image->colormap == (PixelPacket *) NULL)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
if (image->colors != 0)
{

0 comments on commit f5d04fc

Please sign in to comment.
You can’t perform that action at this time.