From 2600a4a352185f7d4d828f7d223628e4bb0f2aa3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 25 Feb 2015 07:48:18 +1000 Subject: [PATCH xf86-input-libinput] Fix off-by-one error in buttonmap initialization (#89300) X.Org Bug 89300 Signed-off-by: Peter Hutterer --- src/libinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libinput.c b/src/libinput.c index 9613fbd..eee3bfb 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -372,7 +372,7 @@ init_button_map(unsigned char *btnmap, size_t size) int i; memset(btnmap, 0, size); - for (i = 0; i <= size; i++) + for (i = 0; i < size; i++) btnmap[i] = i; } -- 2.1.0