summaryrefslogtreecommitdiffstats
path: root/lib/printf/printf-pos.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-05-14 23:21:55 +0200
committerDavid Lamparter <equinox@diac24.net>2019-06-03 18:57:31 +0200
commit3cd9490d0b0cf311ed84d35b5c31628800c00688 (patch)
tree90e68c12b995f312f313ee170947ca52b9464f22 /lib/printf/printf-pos.c
parentlib: add some printfrr specifiers (diff)
downloadfrr-3cd9490d0b0cf311ed84d35b5c31628800c00688.tar.xz
frr-3cd9490d0b0cf311ed84d35b5c31628800c00688.zip
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 <equinox@diac24.net>
Diffstat (limited to '')
-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 7e5231c27..399573e6c 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);
}