xserver: Branch 'master'
Peter Hutterer
whot at kemper.freedesktop.org
Wed Apr 30 18:19:11 PDT 2008
hw/xfree86/dri/dri.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6899ff81e8f668382e3e2f9afdd9cdf51d0e0f7d
Author: Paulo Cesar Pereira de Andrade <pcpa at mandriva.com.br>
Date: Wed Apr 30 16:38:42 2008 -0300
Fix an off by one read error in drmSIGIOHandler().
Signed-off-by: Peter Hutterer <peter at cs.unisa.edu.au>
diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c
index b736c6a..ef1a6ea 100644
--- a/hw/xfree86/dri/dri.c
+++ b/hw/xfree86/dri/dri.c
@@ -2436,7 +2436,7 @@ static void drmSIGIOHandler(int interrupt, void *closure)
#if 0
fprintf(stderr, "Trying %d\n", entry->fd);
#endif
- if ((count = read(entry->fd, buf, sizeof(buf))) > 0) {
+ if ((count = read(entry->fd, buf, sizeof(buf) - 1)) > 0) {
buf[count] = '\0';
#if 0
fprintf(stderr, "Got %s\n", buf);
More information about the xorg-commit
mailing list