Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/wcmUSB.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/wcmUSB.c b/src/wcmUSB.c index 096943e..d41ced6 100644 --- a/src/wcmUSB.c +++ b/src/wcmUSB.c @@ -370,7 +370,7 @@ static Bool usbWcmInit(InputInfoPtr pInfo, char* id, float *version) /* If mouse buttons detected but no mouse tool * then they must be associated with pad buttons. */ - for (i = ARRAY_SIZE(mouse_codes); i > 0; i--) + for (i = ARRAY_SIZE(mouse_codes) - 1; i > 0; i--) if (ISBITSET(common->wcmKeys, mouse_codes[i])) break; -- 1.7.7.6 ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel