From dc0bc2ab7b7196748516f32cc324ea1deaa9faa9 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Thu, 19 Nov 2020 12:57:44 -0500 Subject: [PATCH] hid: Fixed memset in hidJoystickRead(). --- nx/source/services/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/services/hid.c b/nx/source/services/hid.c index 320708fe..db4a1499 100644 --- a/nx/source/services/hid.c +++ b/nx/source/services/hid.c @@ -853,7 +853,7 @@ void hidJoystickRead(JoystickPosition *pos, HidControllerID id, HidControllerJoy if (pos) { if (id < 0 || id > 9 || stick >= JOYSTICK_NUM_STICKS) { - memset(pos, 0, sizeof(touchPosition)); + memset(pos, 0, sizeof(*pos)); return; }