]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 18 May 2014 14:59:50 +0000 (14:59 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 18 May 2014 14:59:50 +0000 (14:59 +0000)
MagickCore/xml-tree.c
coders/mat.c

index c514880cf810ea55e3c96006fdc821b67eb9abd5..e136a5d6355e1bfc42ec2e5284ff5b16bcf7e1d8 100644 (file)
@@ -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);
 }
 \f
index 0d426ec15e6e0998f1d7c6900043e329d6322acb..001c4b09d6e5315a3eaa18dab14fef905123fc20 100644 (file)
@@ -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");