diff options
Diffstat (limited to 'src/EventUtil.c')
-rw-r--r-- | src/EventUtil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EventUtil.c b/src/EventUtil.c index 37e441a..1d41255 100644 --- a/src/EventUtil.c +++ b/src/EventUtil.c @@ -146,7 +146,7 @@ _XtFillAncestorList(Widget **listPtr, /* First time in, allocate the ancestor list */ if (trace == NULL) { - trace = (Widget *) __XtMalloc(CACHESIZE * sizeof(Widget)); + trace = XtMallocArray(CACHESIZE, (Cardinal) sizeof(Widget)); *maxElemsPtr = CACHESIZE; } /* First fill in the ancestor list */ |