diff options
Diffstat (limited to 'src/Create.c')
-rw-r--r-- | src/Create.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Create.c b/src/Create.c index 9d14079..5570e93 100644 --- a/src/Create.c +++ b/src/Create.c @@ -629,11 +629,9 @@ popupPostProc(Widget w) { Widget parent = XtParent(w); - parent->core.popup_list = - (WidgetList) XtRealloc((char *) parent->core.popup_list, - (Cardinal) ((unsigned) - (parent->core.num_popups + - 1) * sizeof(Widget))); + parent->core.popup_list = XtReallocArray(parent->core.popup_list, + (parent->core.num_popups + 1), + (Cardinal) sizeof(Widget)); parent->core.popup_list[parent->core.num_popups++] = w; } |