summaryrefslogtreecommitdiff
path: root/parseutils.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-10 14:07:18 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-11 15:36:06 -0800
commit8d85bd1e2f9473958b235caf7af9913b518f73dd (patch)
tree3348aa708638b6dbe31e9b1ca17d49465df85e8d /parseutils.c
parente02e32f71f6c24fcc69bdaf58f6f9e973a017896 (diff)
Replace uTypedRecalloc() with direct recallocarray() calls
Retains uRecalloc() as a fallback for platforms without recallocarray() Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'parseutils.c')
-rw-r--r--parseutils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/parseutils.c b/parseutils.c
index 7498b75..76876fb 100644
--- a/parseutils.c
+++ b/parseutils.c
@@ -650,10 +650,10 @@ AppendKeysymList(ExprDef * list, char *sym)
if (list->value.list.nSyms >= list->value.list.szSyms)
{
list->value.list.szSyms *= 2;
- list->value.list.syms = uTypedRecalloc(list->value.list.syms,
- list->value.list.nSyms,
- list->value.list.szSyms,
- char *);
+ list->value.list.syms = recallocarray(list->value.list.syms,
+ list->value.list.nSyms,
+ list->value.list.szSyms,
+ sizeof(char *));
if (list->value.list.syms == NULL)
{
FATAL("Couldn't resize list of symbols for append\n");