mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
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>
This commit is contained in:
parent
61c508fa78
commit
1bd7fd195d
4 changed files with 10 additions and 19 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue