summaryrefslogtreecommitdiff
path: root/src/Threads.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-03-03 16:23:20 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-03-07 00:06:24 +0000
commitb1b54c50d0e5851d72c1e7aff4057687be2e447e (patch)
tree9f58e135805accd2ce2bd0bf57d19a02c44064e4 /src/Threads.c
parent4ece1c842a08c11c1f84b95355801d41cd8435b1 (diff)
Replace XtRealloc() calls with XtReallocArray()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Threads.c')
-rw-r--r--src/Threads.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Threads.c b/src/Threads.c
index 4181ce5..566e71c 100644
--- a/src/Threads.c
+++ b/src/Threads.c
@@ -239,9 +239,9 @@ YieldAppLock(XtAppContext app,
unsigned ii;
app_lock->stack.st = (struct _Tstack *)
- XtRealloc((char *) app_lock->stack.st,
- (Cardinal) ((app_lock->stack.size +
- STACK_INCR) * sizeof(struct _Tstack)));
+ XtReallocArray(app_lock->stack.st,
+ (Cardinal) (app_lock->stack.size + STACK_INCR),
+ (Cardinal) sizeof(struct _Tstack));
ii = app_lock->stack.size;
app_lock->stack.size += STACK_INCR;
for (; ii < app_lock->stack.size; ii++) {