diff options
Diffstat (limited to 'libX11/src/GetPntMap.c')
-rw-r--r-- | libX11/src/GetPntMap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libX11/src/GetPntMap.c b/libX11/src/GetPntMap.c index 426c9ac9d..f3446354e 100644 --- a/libX11/src/GetPntMap.c +++ b/libX11/src/GetPntMap.c @@ -67,11 +67,11 @@ int XGetPointerMapping ( _XRead (dpy, (char *)mapping, nbytes); /* don't return more data than the user asked for. */ if (rep.nElts) { - memcpy ((char *) map, (char *) mapping, + memcpy ((char *) map, (char *) mapping, MIN((int)rep.nElts, nmaps) ); } - if (remainder) + if (remainder) _XEatData(dpy, (unsigned long)remainder); UnlockDisplay(dpy); |