Commit 2600a4a3 authored by Peter Hutterer's avatar Peter Hutterer

Fix off-by-one error in buttonmap initialization (#89300)

X.Org Bug 89300 <http://bugs.freedesktop.org/show_bug.cgi?id=89300>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 278a685c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment