diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-03 16:23:20 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-07 00:06:24 +0000 |
commit | b1b54c50d0e5851d72c1e7aff4057687be2e447e (patch) | |
tree | 9f58e135805accd2ce2bd0bf57d19a02c44064e4 /src/Create.c | |
parent | 4ece1c842a08c11c1f84b95355801d41cd8435b1 (diff) |
Replace XtRealloc() calls with XtReallocArray()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
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; } |