diff options
author | Daniel Stone <daniel@fooishbar.org> | 2008-04-25 19:50:12 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2009-01-22 15:08:57 +1100 |
commit | 1bd7fd195d85681e722161f8c636a28f11b40abb (patch) | |
tree | 257da15b8ed79a362fda24f1cc7c4986dddd45fe /xkb/xkbtext.c | |
parent | 61c508fa78aa08ea2666fde950fbafad95d65056 (diff) |
XKB: Sanitise pointer actions
Turn two unsigned chars into one int.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb/xkbtext.c')
-rw-r--r-- | xkb/xkbtext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xkb/xkbtext.c b/xkb/xkbtext.c index 213dbb7aa..debc2f9c6 100644 --- a/xkb/xkbtext.c +++ b/xkb/xkbtext.c @@ -731,8 +731,8 @@ int x,y; char tbuf[32]; act= &action->ptr; - x= XkbPtrActionX(act); - y= XkbPtrActionY(act); + x= act->x; + y= act->y; if ((act->flags&XkbSA_MoveAbsoluteX)||(x<0)) sprintf(tbuf,"x=%d",x); else sprintf(tbuf,"x=+%d",x); |