diff options
Diffstat (limited to 'src/XGetDCtl.c')
-rw-r--r-- | src/XGetDCtl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XGetDCtl.c b/src/XGetDCtl.c index c66212d..f73a4e8 100644 --- a/src/XGetDCtl.c +++ b/src/XGetDCtl.c @@ -95,7 +95,7 @@ XGetDeviceControl( nbytes = (long)rep.length << 2; d = (xDeviceState *) Xmalloc((unsigned)nbytes); if (!d) { - _XEatData(dpy, (unsigned long)nbytes); + _XEatDataWords(dpy, rep.length); goto out; } sav = d; |