Skip to content

Commit c7e7d97

Browse files
committed
input: input_utils: use proper sizeof
Would have not directly caused issues, but better to fix it :) Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 9652ac5 commit c7e7d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/input/input_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static int input_cmd_kbd_matrix_state_dump(const struct shell *sh,
247247
}
248248

249249
memset(kbd_matrix_state, 0, sizeof(kbd_matrix_state));
250-
memset(kbd_matrix_key_mask, 0, sizeof(kbd_matrix_state));
250+
memset(kbd_matrix_key_mask, 0, sizeof(kbd_matrix_key_mask));
251251
kbd_matrix_state_dev = dev;
252252

253253
shell_info(sh, "Keyboard state logging enabled for %s", dev->name);

0 commit comments

Comments
 (0)