summaryrefslogtreecommitdiff
path: root/coders/map.c
diff options
context:
space:
mode:
authorcristy <urban-warrior@git.imagemagick.org>2011-09-04 21:15:19 +0000
committercristy <urban-warrior@git.imagemagick.org>2011-09-04 21:15:19 +0000
commit018f07f7333b25743d0afff892450cebdb905c1a (patch)
tree90e3c7b66aa1a4e4696dda745034e348fd41bb03 /coders/map.c
parent433d11887841b922ec5e6805f9fdd240c320b92e (diff)
downloadImageMagick-018f07f7333b25743d0afff892450cebdb905c1a.tar.gz
Diffstat (limited to 'coders/map.c')
-rw-r--r--coders/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coders/map.c b/coders/map.c
index 16fb68da4..7ee63f9c9 100644
--- a/coders/map.c
+++ b/coders/map.c
@@ -157,7 +157,7 @@ static Image *ReadMAPImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
image->storage_class=PseudoClass;
status=AcquireImageColormap(image,(size_t)
- (image->offset != 0 ? image->offset : 256));
+ (image->offset != 0 ? image->offset : 256),exception);
if (status == MagickFalse)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
depth=GetImageQuantumDepth(image,MagickTrue);
@@ -380,7 +380,7 @@ static MagickBooleanType WriteMAPImage(const ImageInfo *image_info,Image *image,
Allocate colormap.
*/
if (IsPaletteImage(image,exception) == MagickFalse)
- (void) SetImageType(image,PaletteType);
+ (void) SetImageType(image,PaletteType,exception);
depth=GetImageQuantumDepth(image,MagickTrue);
packet_size=(size_t) (depth/8);
pixels=(unsigned char *) AcquireQuantumMemory(image->columns,packet_size*