diff --git a/magick/splay-tree.c b/magick/splay-tree.c
index 96778c4..895ac47 100644
--- a/magick/splay-tree.c
+++ b/magick/splay-tree.c
@@ -182,7 +182,7 @@
return(MagickTrue);
}
}
- node=(NodeInfo *) AcquireQuantumMemory(1,sizeof(*node));
+ node=(NodeInfo *) AcquireMagickMemory(sizeof(*node));
if (node == (NodeInfo *) NULL)
{
UnlockSemaphoreInfo(splay_tree->semaphore);
@@ -1098,7 +1098,7 @@
SplayTreeInfo
*splay_tree;
- splay_tree=(SplayTreeInfo *) AcquireQuantumMemory(1,sizeof(*splay_tree));
+ splay_tree=(SplayTreeInfo *) AcquireMagickMemory(sizeof(*splay_tree));
if (splay_tree == (SplayTreeInfo *) NULL)
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
(void) ResetMagickMemory(splay_tree,0,sizeof(*splay_tree));