diff --git a/wand/deprecate.c b/wand/deprecate.c
index 44db734..be7ec2d 100644
--- a/wand/deprecate.c
+++ b/wand/deprecate.c
@@ -129,7 +129,7 @@
assert(wand->signature == WandSignature);
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
- clone_wand=(MagickWand *) AcquireQuantumMemory(1,sizeof(*clone_wand));
+ clone_wand=(MagickWand *) AcquireMagickMemory(sizeof(*clone_wand));
if (clone_wand == (MagickWand *) NULL)
ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
images->filename);
@@ -201,7 +201,7 @@
assert(pixel_view->signature == WandSignature);
if (pixel_view->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",pixel_view->name);
- clone_view=(PixelView *) AcquireQuantumMemory(1,sizeof(*clone_view));
+ clone_view=(PixelView *) AcquireMagickMemory(sizeof(*clone_view));
if (clone_view == (PixelView *) NULL)
ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
pixel_view->name);
@@ -2353,7 +2353,7 @@
assert(wand != (MagickWand *) NULL);
assert(wand->signature == MagickSignature);
- pixel_view=(PixelView *) AcquireQuantumMemory(1,sizeof(*pixel_view));
+ pixel_view=(PixelView *) AcquireMagickMemory(sizeof(*pixel_view));
if (pixel_view == (PixelView *) NULL)
ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
GetExceptionMessage(errno));
@@ -2412,7 +2412,7 @@
assert(wand != (MagickWand *) NULL);
assert(wand->signature == MagickSignature);
- pixel_view=(PixelView *) AcquireQuantumMemory(1,sizeof(*pixel_view));
+ pixel_view=(PixelView *) AcquireMagickMemory(sizeof(*pixel_view));
if (pixel_view == (PixelView *) NULL)
ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
GetExceptionMessage(errno));