diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-03 17:42:47 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-07 00:06:24 +0000 |
commit | b3b0c1ad25a5d0f628eddd00113a40364d68480b (patch) | |
tree | 7b1088ab3cc984dd606df1b56fdda7dec975432f /src/Object.c | |
parent | b1b54c50d0e5851d72c1e7aff4057687be2e447e (diff) |
Replace XtMalloc() calls with XtMallocArray()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Object.c')
-rw-r--r-- | src/Object.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Object.c b/src/Object.c index c5a3a58..ef9f0c1 100644 --- a/src/Object.c +++ b/src/Object.c @@ -179,9 +179,8 @@ ConstructCallbackOffsets(WidgetClass myWidgetClass) * offsets occur in the table ahead of the superclass callback * offsets so that resource overrides work. */ - newTable = (CallbackTable) - __XtMalloc((Cardinal) - (sizeof(XrmResource *) * (size_t) (tableSize + 1))); + newTable = XtMallocArray((Cardinal) tableSize + 1, + (Cardinal) sizeof(XrmResource *)); newTable[0] = (XrmResource *) (XtIntPtr) tableSize; |