]> git.mdlowis.com Git - proto/labwc.git/commit
key-state: Prevent array overflow
authorJohn Lindgren <john@jlindgren.net>
Wed, 2 Nov 2022 20:26:33 +0000 (16:26 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 2 Nov 2022 21:52:33 +0000 (21:52 +0000)
commitb163045fa982e88c53d2d5236c3b8164d7a1d9bf
treed7a2aeed8a97fd83b2eaee23114ed71b2071123a
parentec8bc6e2d602c7022fe1ecfd074c7cf26b1da75b
key-state: Prevent array overflow

- Prevent adding the same keycode more than once
- Prevent adding more keycodes than MAX_PRESSED_KEYS
src/key-state.c