mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
check buffersize before reading next char, fixes the "mouse stuck at left"
bug (bugzilla #3113) for BSD systems using wscons. (Dale Rahn).
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2006-05-26 Matthieu Herrb <matthieu.herrb@laas.fr>
|
||||
|
||||
* hw/xfree86/os-support/bsd/bsd_mouse.c:
|
||||
check buffersize before reading next char, fixes the
|
||||
"mouse stuck at left" bug (bugzilla #3113) for BSD systems using
|
||||
wscons. (Dale Rahn).
|
||||
|
||||
2006-05-25 Jeremy C. Reed <reed@reedmedia.net>
|
||||
|
||||
* doc/Xserver.man.pre:
|
||||
|
||||
@@ -401,7 +401,7 @@ wsconsReadInput(InputInfoPtr pInfo)
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user