summaryrefslogtreecommitdiff
path: root/xkb/xkbtext.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2008-04-25 19:50:12 +0300
committerDaniel Stone <daniel@fooishbar.org>2009-01-22 15:08:57 +1100
commit1bd7fd195d85681e722161f8c636a28f11b40abb (patch)
tree257da15b8ed79a362fda24f1cc7c4986dddd45fe /xkb/xkbtext.c
parent61c508fa78aa08ea2666fde950fbafad95d65056 (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.c4
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);