]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 9 Aug 2012 20:04:24 +0000 (20:04 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 9 Aug 2012 20:04:24 +0000 (20:04 +0000)
MagickCore/memory.c
MagickCore/semaphore.c

index fa6bdcb89d4222e4933e07d86838136faf0ac68d..b6d34cad9b68985574ae921c14f310fd1542245b 100644 (file)
@@ -214,7 +214,7 @@ MagickExport void *AcquireAlignedMemory(const size_t count,const size_t quantum)
   if (posix_memalign(&memory,alignment,extent) != 0)
     memory=NULL;
 #elif defined(MAGICKCORE_HAVE__ALIGNED_MALLOC)
-  memory=_aligned_malloc(size,alignment);
+  memory=_aligned_malloc(extent,alignment);
 #else
   {
     void
index 97b3aea0de2513106e2926d8ae04eaa2ac33bbfa..0bd80c4014171b81099842af63e970c3598acba5 100644 (file)
@@ -151,7 +151,7 @@ static void *AcquireSemaphoreMemory(const size_t count,const size_t quantum)
   if (posix_memalign(&memory,alignment,extent) != 0)
     memory=NULL;
 #elif defined(MAGICKCORE_HAVE__ALIGNED_MALLOC)
-  memory=_aligned_malloc(size,alignment);
+  memory=_aligned_malloc(extent,alignment);
 #else
   {
     void