mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 01:10:08 +01: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;
|
||||
tmp = reallocarray(q->properties, nprops, sizeof(p));
|
||||
tmp = realloc(q->properties, nprops * sizeof(p));
|
||||
if (!tmp)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue