summaryrefslogtreecommitdiff
path: root/src/VarGet.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/VarGet.c
parentb1b54c50d0e5851d72c1e7aff4057687be2e447e (diff)
Replace XtMalloc() calls with XtMallocArray()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/VarGet.c')
-rw-r--r--src/VarGet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VarGet.c b/src/VarGet.c
index 63930da..b377f07 100644
--- a/src/VarGet.c
+++ b/src/VarGet.c
@@ -246,7 +246,7 @@ XtVaGetValues(Widget widget, ...)
if (total_count != typed_count) {
size_t limit = (size_t) (total_count - typed_count);
- args = (ArgList) __XtMalloc((unsigned) (limit * sizeof(Arg)));
+ args = XtMallocArray((Cardinal) limit, (Cardinal) sizeof(Arg));
}
else
args = NULL; /* for lint; really unused */