From 3cd9490d0b0cf311ed84d35b5c31628800c00688 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 14 May 2019 23:21:55 +0200 Subject: lib/printf: ditch reallocarray reallocarray() is walled behind stupid feature macros on various platforms and doesn't quite gain us much in that particular use case. Signed-off-by: David Lamparter --- lib/printf/printf-pos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/printf/printf-pos.c') diff --git a/lib/printf/printf-pos.c b/lib/printf/printf-pos.c index 7e5231c27e..399573e6c1 100644 --- a/lib/printf/printf-pos.c +++ b/lib/printf/printf-pos.c @@ -661,7 +661,7 @@ __grow_type_table(struct typetable *types) return (-1); bcopy(oldtable, newtable, oldsize * sizeof(enum typeid)); } else { - newtable = reallocarray(oldtable, newsize, sizeof(enum typeid)); + newtable = realloc(oldtable, newsize * sizeof(enum typeid)); if (newtable == NULL) return (-1); } -- cgit v1.2.3