Index: bsd_mouse.c =================================================================== RCS file: /cvs/fd/xorg/xc/programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c,v retrieving revision 1.5 diff -u -r1.5 bsd_mouse.c --- bsd_mouse.c 3 Jul 2005 07:01:30 -0000 1.5 +++ bsd_mouse.c 2 Feb 2006 22:43:16 -0000 @@ -401,7 +401,7 @@ XisbBlockDuration(pMse->buffer, -1); pBuf = (unsigned char *)eventList; n = 0; - while ((c = XisbRead(pMse->buffer)) >= 0 && n < sizeof(eventList)) { + while (n < sizeof(eventList) && (c = XisbRead(pMse->buffer)) >= 0) { pBuf[n++] = (unsigned char)c; }