diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-06-02 19:39:52 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-06-02 19:39:52 +0000 |
commit | 57a7f2844108072bf03c9f82baf92e3447d18fbe (patch) | |
tree | 75e042d65ea028be028b24f547dac1800741a131 | |
parent | 1b03250797daa0ac98323a9f43e895dd0b5c7761 (diff) |
Fix an obvious bogon to avoid crashing on absolute axis setup.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/evdev_axes.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-06-02 Adam Jackson <ajax@freedesktop.org> + + * src/evdev_axes.c: + Fix an obvious bogon to avoid crashing on absolute axis setup. + 2006-05-15 Zephaniah E. Hull,,, <warp@aehallh.com> * src/evdev.h: diff --git a/src/evdev_axes.c b/src/evdev_axes.c index d1bafd9..0d9b5a7 100644 --- a/src/evdev_axes.c +++ b/src/evdev_axes.c @@ -385,7 +385,7 @@ EvdevAxisAbsNew(InputInfoPtr pInfo) k = xf86SetIntOption(pInfo->options, "AbsoluteScreen", 0); else k = xf86SetIntOption(pInfo->options, "AbsoluteScreen", -1); - if (k < screenInfo.numScreens) { + if (k < screenInfo.numScreens && k >= 0) { state->abs->screen = k; xf86Msg(X_CONFIG, "%s: AbsoluteScreen: %d.\n", pInfo->name, k); } else { |