summaryrefslogtreecommitdiff
path: root/src/Manage.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-03-03 17:42:47 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-03-07 00:06:24 +0000
commitb3b0c1ad25a5d0f628eddd00113a40364d68480b (patch)
tree7b1088ab3cc984dd606df1b56fdda7dec975432f /src/Manage.c
parentb1b54c50d0e5851d72c1e7aff4057687be2e447e (diff)
downloadxorg-lib-libXt-b3b0c1ad25a5d0f628eddd00113a40364d68480b.tar.gz
Replace XtMalloc() calls with XtMallocArray()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Manage.c')
-rw-r--r--src/Manage.c3
1 files changed, 1 insertions, 2 deletions
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++) {