Core Input: Correct a memset size within mInputUnbindHat() Previously the binding struct wouldn't be fully invalidated.
Lioncash mathew1800@gmail.com
Sun, 14 May 2017 21:22:17 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/core/input.c
→
src/core/input.c
@@ -563,7 +563,7 @@ if (mInputHatListSize(&impl->hats) && id + 1 == (ssize_t) mInputHatListSize(&impl->hats)) {
mInputHatListResize(&impl->hats, -1); } else { struct mInputHatBindings* description = mInputHatListGetPointer(&impl->hats, id); - memset(description, -1, sizeof(&description)); + memset(description, -1, sizeof(*description)); } }