From: cristy Date: Sun, 18 May 2014 14:59:50 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2314 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28dc7c0a7aba7986fa0dea673ad94758ffb68433;p=imagemagick --- diff --git a/MagickCore/xml-tree.c b/MagickCore/xml-tree.c index c514880cf..e136a5d63 100644 --- a/MagickCore/xml-tree.c +++ b/MagickCore/xml-tree.c @@ -2495,7 +2495,7 @@ MagickPrivate XMLTreeInfo *SetXMLTreeAttribute(XMLTreeInfo *xml_info, j-=2; (void) CopyMagickMemory(xml_info->attributes[j+1]+(i/2), xml_info->attributes[j+1]+(i/2)+1,(size_t) (((j+2)/2)-(i/2))* - sizeof(*xml_info->attributes)); + sizeof(**xml_info->attributes)); return(xml_info); } 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");