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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-06-15 07:59:06 +10:00
parent 20ccb81726
commit 0d6dea5d8f

View file

@ -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;