diff options
Diffstat (limited to 'src/ResConfig.c')
-rw-r--r-- | src/ResConfig.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ResConfig.c b/src/ResConfig.c index c12fed5..2ba68b0 100644 --- a/src/ResConfig.c +++ b/src/ResConfig.c @@ -781,8 +781,7 @@ _locate_children(Widget parent, Widget **children) return (0); } - *children = (Widget *) - XtMalloc((Cardinal) (sizeof(Widget) * (size_t) num_children)); + *children = XtMallocArray((Cardinal)num_children, (Cardinal)sizeof(Widget)); if (XtIsComposite(parent)) { for (i = 0; i < comp->composite.num_children; i++) { |