diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-02 08:57:40 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-03 08:39:27 +1000 |
commit | b41db8fe460fc0956922b79261752d1bb104684f (patch) | |
tree | 9890c323c5399bc7c2878cd741001d0841ff28c4 /Xi | |
parent | 727de7c90de4198222e0dc58d7503b4a1672f642 (diff) |
Xi: fix broken swap code in XISelectEvents request processing.
The pointer advanced 12 bytes too short. Rather unfortunate if both the code
and the test have the same bug.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r-- | Xi/xiselectev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/xiselectev.c b/Xi/xiselectev.c index d4f5faa7c..16eada7c8 100644 --- a/Xi/xiselectev.c +++ b/Xi/xiselectev.c @@ -73,7 +73,7 @@ SProcXISelectEvents(ClientPtr client) { swaps(&evmask->deviceid, n); swaps(&evmask->mask_len, n); - evmask = (xXIEventMask*)(((char*)evmask) + evmask->mask_len * 4); + evmask = (xXIEventMask*)(((char*)&evmask[1]) + evmask->mask_len * 4); } return (ProcXISelectEvents(client)); |