diff options
Diffstat (limited to 'src/TMaction.c')
-rw-r--r-- | src/TMaction.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TMaction.c b/src/TMaction.c index 9118bb6..3fbc879 100644 --- a/src/TMaction.c +++ b/src/TMaction.c @@ -464,10 +464,10 @@ EnterBindCache(Widget w, if (_XtGlobalTM.numBindCache == _XtGlobalTM.bindCacheTblSize) { _XtGlobalTM.bindCacheTblSize = (TMShortCard) (_XtGlobalTM.bindCacheTblSize + 16); - _XtGlobalTM.bindCacheTbl = (TMBindCache *) - XtRealloc((char *) _XtGlobalTM.bindCacheTbl, - (Cardinal) ((_XtGlobalTM.bindCacheTblSize) * - sizeof(TMBindCache))); + _XtGlobalTM.bindCacheTbl = + XtReallocArray(_XtGlobalTM.bindCacheTbl, + (Cardinal) _XtGlobalTM.bindCacheTblSize, + (Cardinal) sizeof(TMBindCache)); } _XtGlobalTM.bindCacheTbl[_XtGlobalTM.numBindCache++] = bindCache; #endif /* TRACE_TM */ |