[PATCH] Fix off by one error in xf86Init
Cameron Stewart
cameron at shptech.com
Mon Nov 4 03:46:39 CET 2013
---
hw/xfree86/common/xf86Init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index 6282252..663c5f1 100644
--- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c
@@ -560,7 +560,7 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
for (i = 0; i < xf86NumDrivers; i++) {
if (xf86DriverList[i] == NULL) {
- for (j = i; j < xf86NumDrivers; j++) {
+ for (j = i; j < xf86NumDrivers - 1; j++) {
xf86DriverList[j] = xf86DriverList[j + 1];
}
xf86NumDrivers--;
--
1.8.4.1
More information about the xorg-devel
mailing list