summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-05-19 13:54:33 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-19 13:55:02 +1000
commit13ce4a03824a7c5ac0270198d265b02b18786e1f (patch)
treec08d91b0297e8a0153b6703edd1d0806a320a206
parent7f1f0b9cf8ad17b5a4694406137a1c2114918a67 (diff)
XIPassiveGrab: take the address of modifiers for memcpy, not the value.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/XIPassiveGrab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XIPassiveGrab.c b/src/XIPassiveGrab.c
index 9404e72..160115f 100644
--- a/src/XIPassiveGrab.c
+++ b/src/XIPassiveGrab.c
@@ -69,7 +69,7 @@ _XIPassiveGrabDevice(Display* dpy, int deviceid, int grabtype, int detail,
memcpy(buff, mask->mask, mask->mask_len);
Data32(dpy, buff, req->mask_len * 4);
for (i = 0; i < num_modifiers; i++)
- Data32(dpy, modifiers_inout[i].modifiers, 4);
+ Data32(dpy, &modifiers_inout[i].modifiers, 4);
free(buff);