summaryrefslogtreecommitdiff
path: root/src/Resources.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Resources.c')
-rw-r--r--src/Resources.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Resources.c b/src/Resources.c
index d53339e..274f9d7 100644
--- a/src/Resources.c
+++ b/src/Resources.c
@@ -596,10 +596,9 @@ GetResources(Widget widget, /* Widget resources are associated with
searchList, (int) searchListSize)) {
if (searchList == stackSearchList)
searchList = NULL;
- searchList = (XrmHashTable *) XtRealloc((char *) searchList,
- (Cardinal) (sizeof(XrmHashTable)
- * (searchListSize *=
- 2)));
+ searchListSize *= 2;
+ searchList = XtReallocArray(searchList, searchListSize,
+ (Cardinal) sizeof(XrmHashTable));
}
if (persistent_resources)