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

@ -191,7 +191,7 @@ static int update_params(struct params *p, uint32_t n_params, const struct spa_p
p->params = NULL;
} else {
struct spa_pod **np;
np = reallocarray(p->params, p->n_params, sizeof(struct spa_pod *));
np = pw_reallocarray(p->params, p->n_params, sizeof(struct spa_pod *));
if (np == NULL) {
pw_log_error("%p: can't realloc: %m", p);
free(p->params);