From 28dc7c0a7aba7986fa0dea673ad94758ffb68433 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 18 May 2014 14:59:50 +0000 Subject: [PATCH] --- MagickCore/xml-tree.c | 2 +- coders/mat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.40.0