Skip to content
Permalink
Browse files Browse the repository at this point in the history
https://github.com/ImageMagick/ImageMagick/issues/131
  • Loading branch information
Cristy committed Feb 14, 2016
1 parent f20e356 commit 1bc1fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/mat.c
Expand Up @@ -864,7 +864,7 @@ RestoreMSCWarning
return(DestroyImageList(image));

/* ----- 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(double)); /* Ldblk was set in the check phase */
if (BImgBuff == NULL)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");

Expand Down

0 comments on commit 1bc1fd0

Please sign in to comment.