summaryrefslogtreecommitdiff
path: root/lib/printf/printf-pos.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/printf/printf-pos.c')
-rw-r--r--lib/printf/printf-pos.c2
1 files changed, 1 insertions, 1 deletions
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);
}