From 0d6dea5d8fd3f855377d954ea6bda24035fe5ca5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 15 Jun 2018 07:59:06 +1000 Subject: [PATCH] quirks: use realloc instead of reallocarray The latter requires libbsd and for that one call it's not worth it https://gitlab.freedesktop.org/libinput/libinput/issues/40 Signed-off-by: Peter Hutterer --- src/quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;