X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=coders%2Fmat.c;h=001c4b09d6e5315a3eaa18dab14fef905123fc20;hb=8418c7e51974060a1c724e25d700d72fb437174b;hp=0d426ec15e6e0998f1d7c6900043e329d6322acb;hpb=96c0d6808c0b85bcf534d17c79aaf40d03bf9ecf;p=imagemagick diff --git a/coders/mat.c b/coders/mat.c index 0d426ec15..001c4b09d 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -868,7 +868,7 @@ RestoreMSCWarning } /* ----- Load raster data ----- */ - BImgBuff = (unsigned char *) AcquireQuantumMemory((size_t) (ldblk),sizeof(unsigned char *)); /* Ldblk was set in the check phase */ + BImgBuff = (unsigned char *) AcquireQuantumMemory((size_t) (ldblk),sizeof(unsigned char)); /* Ldblk was set in the check phase */ if (BImgBuff == NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");