---
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
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel