summaryrefslogtreecommitdiff
path: root/src/EventUtil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/EventUtil.c')
-rw-r--r--src/EventUtil.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/EventUtil.c b/src/EventUtil.c
index 4f76841..37e441a 100644
--- a/src/EventUtil.c
+++ b/src/EventUtil.c
@@ -160,9 +160,8 @@ _XtFillAncestorList(Widget **listPtr,
/* This should rarely happen, but if it does it'll probably
happen again, so grow the ancestor list */
*maxElemsPtr += CACHESIZE;
- trace = (Widget *) XtRealloc((char *) trace,
- (Cardinal) (sizeof(Widget) *
- (size_t) (*maxElemsPtr)));
+ trace = XtReallocArray(trace, (Cardinal) *maxElemsPtr,
+ (Cardinal) sizeof(Widget));
}
trace[i] = w;
}