commit | f9cca6af1ff9b913c32a2cec81eda059877a8832 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Fri Jun 04 23:49:28 2010 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Fri Jun 04 23:49:28 2010 +0000 |
tree | ff2dab8caf5dafd4a9de081fdd876f84297d4ce3 | |
parent | 8891f9ce489d3e61399b60436ea6c62f5ed9b887 [diff] [blame] |
diff --git a/coders/tga.c b/coders/tga.c index fa23ceb..3d31bee 100644 --- a/coders/tga.c +++ b/coders/tga.c
@@ -250,7 +250,11 @@ image->colors=tga_info.colormap_length; else { - image->colors=0x01U << tga_info.bits_per_pixel; + size_t + one; + + one=1; + image->colors=one << tga_info.bits_per_pixel; if (AcquireImageColormap(image,image->colors) == MagickFalse) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); }