image->colors = image_colors;
- if (AcquireImageColormap(image,image_colors,exception) ==
- MagickFalse)
- ThrowWriterException(ResourceLimitError,
- "MemoryAllocationFailed");
+ if (AcquireImageColormap(image,image_colors,exception) == MagickFalse)
+ {
+ (void) ThrowMagickException(exception,GetMagickModule(),
+ ResourceLimitError,"MemoryAllocationFailed","`%s'",
+ IMimage->filename);
+ }
for (i=0; i< (ssize_t) image_colors; i++)
image->colormap[i] = colormap[i];