Avoid unnecessary VLAs
authorMichael Forney <mforney@mforney.org>
Sat, 15 Jun 2019 20:50:33 +0000 (13:50 -0700)
committerMichael Forney <mforney@mforney.org>
Sat, 15 Jun 2019 22:24:10 +0000 (15:24 -0700)
commit9d1b43d241add6f26dc65d181debc514ce6238f3
tree05f4c938b26811f25ab0f308a85fe5fa84ef89e6
parent4740ad7af6f5ef463d7fd0e57b501745fba4c673
Avoid unnecessary VLAs

When the array length is fixed, or bounded by a fixed upper bound,
just use that fixed length.

Signed-off-by: Michael Forney <mforney@mforney.org>
src/libinput-util.c
src/quirks.c
test/test-keyboard.c
test/test-pointer.c
test/test-utils.c