diff options
Diffstat (limited to 'src/Event.c')
-rw-r--r-- | src/Event.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Event.c b/src/Event.c index 3939a18..b485931 100644 --- a/src/Event.c +++ b/src/Event.c @@ -768,10 +768,8 @@ CallEventHandlers(Widget widget, XEvent *event, EventMask mask) (p->has_type_specifier && event->type == EXT_TYPE(p))) numprocs++; } - proc = (XtEventHandler *) - __XtMalloc((Cardinal) - ((size_t) numprocs * - (sizeof(XtEventHandler) + sizeof(XtPointer)))); + proc = XtMallocArray((Cardinal) numprocs, (Cardinal) + (sizeof(XtEventHandler) + sizeof(XtPointer))); closure = (XtPointer *) (proc + numprocs); numprocs = 0; |