summaryrefslogtreecommitdiff
path: root/src/Intrinsic.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/Intrinsic.c
parentb1b54c50d0e5851d72c1e7aff4057687be2e447e (diff)
downloadxorg-lib-libXt-b3b0c1ad25a5d0f628eddd00113a40364d68480b.tar.gz
Replace XtMalloc() calls with XtMallocArray()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Intrinsic.c')
-rw-r--r--src/Intrinsic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Intrinsic.c b/src/Intrinsic.c
index 7ca4e7c..88d66e7 100644
--- a/src/Intrinsic.c
+++ b/src/Intrinsic.c
@@ -1309,7 +1309,7 @@ FillInLangSubs(Substitution subs, XtPerDisplay pd)
len = (int) strlen(string) + 1;
subs[0].substitution = (_XtString) string;
- p1 = subs[1].substitution = __XtMalloc((Cardinal) (3 * len));
+ p1 = subs[1].substitution = XtMallocArray(3, (Cardinal) len);
p2 = subs[2].substitution = subs[1].substitution + len;
p3 = subs[3].substitution = subs[2].substitution + len;