From: cristy Date: Thu, 9 Aug 2012 20:04:24 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97c5c52ef13ad3db05b8a44b058dec583a7af56a;p=imagemagick --- diff --git a/MagickCore/memory.c b/MagickCore/memory.c index fa6bdcb89..b6d34cad9 100644 --- a/MagickCore/memory.c +++ b/MagickCore/memory.c @@ -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 diff --git a/MagickCore/semaphore.c b/MagickCore/semaphore.c index 97b3aea0d..0bd80c401 100644 --- a/MagickCore/semaphore.c +++ b/MagickCore/semaphore.c @@ -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