mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 04:18:01 +02:00
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:
parent
20ccb81726
commit
0d6dea5d8f
1 changed files with 1 additions and 1 deletions
|
|
@ -1240,7 +1240,7 @@ quirk_apply_section(struct quirks_context *ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
nprops += q->nproperties;
|
nprops += q->nproperties;
|
||||||
tmp = reallocarray(q->properties, nprops, sizeof(p));
|
tmp = realloc(q->properties, nprops * sizeof(p));
|
||||||
if (!tmp)
|
if (!tmp)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue