From 8d85bd1e2f9473958b235caf7af9913b518f73dd Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 10 Dec 2022 14:07:18 -0800 Subject: Replace uTypedRecalloc() with direct recallocarray() calls Retains uRecalloc() as a fallback for platforms without recallocarray() Signed-off-by: Alan Coopersmith --- parseutils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'parseutils.c') 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"); -- cgit v1.2.3