diff options
Diffstat (limited to 'coders/mat.c')
-rw-r--r-- | coders/mat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coders/mat.c b/coders/mat.c index ba1bd3413..46fcf626d 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -852,7 +852,7 @@ MATLAB_KO: ThrowReaderException(CorruptImageError,"ImproperImageHeader"); { if(image->colors>256) image->colors = 256; - if (!AcquireImageColormap(image, image->colors)) + if (AcquireImageColormap(image, image->colors,exception) == MagickFalse) { NoMemory:ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");} } |