summaryrefslogtreecommitdiff
path: root/src/Object.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Object.c')
-rw-r--r--src/Object.c5
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;