diff options
Diffstat (limited to 'src/XQueryDv.c')
-rw-r--r-- | src/XQueryDv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XQueryDv.c b/src/XQueryDv.c index 24d4e4e..69c285b 100644 --- a/src/XQueryDv.c +++ b/src/XQueryDv.c @@ -91,7 +91,7 @@ XQueryDeviceState( if (rlen > 0) { data = Xmalloc(rlen); if (!data) { - _XEatData(dpy, (unsigned long)rlen); + _XEatDataWords(dpy, rep.length); goto out; } _XRead(dpy, data, rlen); |