[PATCH] Fix off by one error in xf86Init
Cameron Stewart
cameron at shptech.com
Mon Nov 4 04:03:00 CET 2013
On Mon, Nov 4, 2013 at 1:46 PM, Cameron Stewart <cameron at shptech.com> wrote:
> ---
> 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
>
Sorry, whoops I didn't check, this is for the xwayland branch. It
fixes a bug introduced in 585f8f14.
More information about the xorg-devel
mailing list