From b3b0c1ad25a5d0f628eddd00113a40364d68480b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 3 Mar 2023 17:42:47 -0800 Subject: Replace XtMalloc() calls with XtMallocArray() Signed-off-by: Alan Coopersmith --- src/Manage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Manage.c') diff --git a/src/Manage.c b/src/Manage.c index 39097ee..7881094 100644 --- a/src/Manage.c +++ b/src/Manage.c @@ -243,8 +243,7 @@ ManageChildren(WidgetList children, unique_children = cache; } else { - unique_children = (WidgetList) - __XtMalloc((Cardinal) ((size_t) num_children * sizeof(Widget))); + unique_children = XtMallocArray(num_children, (Cardinal) sizeof(Widget)); } num_unique_children = 0; for (i = 0; i < num_children; i++) { -- cgit v1.2.3