summaryrefslogtreecommitdiff
path: root/src/SetWMCW.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/SetWMCW.c')
-rw-r--r--src/SetWMCW.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SetWMCW.c b/src/SetWMCW.c
index 413142b..52b71e5 100644
--- a/src/SetWMCW.c
+++ b/src/SetWMCW.c
@@ -92,7 +92,7 @@ XtSetWMColormapWindows(Widget widget, Widget *list, Cardinal count)
return;
}
- top = checked = (Widget *) __XtMalloc((Cardinal) sizeof(Widget) * count);
+ top = checked = XtMallocArray(count, (Cardinal) sizeof(Widget));
/*
* The specification calls for only adding the windows that have unique
@@ -136,7 +136,7 @@ XtSetWMColormapWindows(Widget widget, Widget *list, Cardinal count)
* windows and set the property.
*/
- data = (Window *) __XtMalloc((Cardinal) sizeof(Window) * checked_count);
+ data = XtMallocArray(checked_count, (Cardinal) sizeof(Window));
for (i = 0; i < checked_count; i++)
data[i] = XtWindow(top[i]);