fix detection of reallocarray

Fix detection of reallocarray (e.g. on glibc) raised since commit
0708a39b43

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
Fabrice Fontaine 2022-05-27 15:00:17 +02:00 committed by Wim Taymans
parent 63d2102594
commit 85ca67b927
13 changed files with 35 additions and 20 deletions

View file

@ -120,7 +120,7 @@ static jack_property_t *add_property(jack_description_t *desc, const char *key,
if (desc->property_cnt == desc->property_size) {
ns = desc->property_size > 0 ? desc->property_size * 2 : 8;
np = reallocarray(desc->properties, ns, sizeof(*prop));
np = pw_reallocarray(desc->properties, ns, sizeof(*prop));
if (np == NULL)
return NULL;
desc->property_size = ns;