diff options
Diffstat (limited to 'test/xi2/protocol-xiselectevents.c')
-rw-r--r-- | test/xi2/protocol-xiselectevents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/xi2/protocol-xiselectevents.c b/test/xi2/protocol-xiselectevents.c index ac38c53c9..9782cff5c 100644 --- a/test/xi2/protocol-xiselectevents.c +++ b/test/xi2/protocol-xiselectevents.c @@ -113,7 +113,7 @@ static void request_XISelectEvent(xXISelectEventsReq *req, int error) mask = (xXIEventMask*)&req[1]; for (i = 0; i < req->num_masks; i++) { - next = (xXIEventMask*)((char*)mask) + mask->mask_len; + next = (xXIEventMask*)((char*)&mask[1] + mask->mask_len * 4); swaps(&mask->deviceid, n); swaps(&mask->mask_len, n); mask = next; |