summaryrefslogtreecommitdiff
path: root/src/XOpenDev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XOpenDev.c')
-rw-r--r--src/XOpenDev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XOpenDev.c b/src/XOpenDev.c
index 74f18ac..e784f8b 100644
--- a/src/XOpenDev.c
+++ b/src/XOpenDev.c
@@ -101,7 +101,7 @@ XOpenDevice(
if (rlen - dlen > 0)
_XEatData(dpy, (unsigned long)rlen - dlen);
} else
- _XEatData(dpy, (unsigned long)rlen);
+ _XEatDataWords(dpy, rep.length);
UnlockDisplay(dpy);
SyncHandle();