summaryrefslogtreecommitdiff
path: root/src/XListDev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XListDev.c')
-rw-r--r--src/XListDev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XListDev.c b/src/XListDev.c
index bd6e70a..1fa4747 100644
--- a/src/XListDev.c
+++ b/src/XListDev.c
@@ -202,7 +202,7 @@ XListInputDevices(
list = (xDeviceInfo *) Xmalloc(rlen);
slist = list;
if (!slist) {
- _XEatData(dpy, (unsigned long)rlen);
+ _XEatDataWords(dpy, rep.length);
UnlockDisplay(dpy);
SyncHandle();
return (XDeviceInfo *) NULL;