all repos — mgba @ aa4423a68fb70027c2e1288a326e3c5f55dae232

mGBA Game Boy Advance Emulator

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
commit

aa4423a68fb70027c2e1288a326e3c5f55dae232

parent

86cf8a90a35bd1b210aa21e8252164dc6f9928c2

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/core/input.csrc/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)); } }