diff --git a/src/quirks.c b/src/quirks.c index 2fca275a..3f133015 100644 --- a/src/quirks.c +++ b/src/quirks.c @@ -1240,7 +1240,7 @@ quirk_apply_section(struct quirks_context *ctx, } nprops += q->nproperties; - tmp = reallocarray(q->properties, nprops, sizeof(p)); + tmp = realloc(q->properties, nprops * sizeof(p)); if (!tmp) return;