hw/kdrive/ephyr/ephyrdriext.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- xorg-server-1.7.7.orig/hw/kdrive/ephyr/ephyrdriext.c
+++ xorg-server-1.7.7/hw/kdrive/ephyr/ephyrdriext.c
@@ -470,7 +470,7 @@
int i=0 ;
EPHYR_LOG ("enter\n") ;
- if (a_screen > screenInfo.numScreens) {
+ if (a_screen >= screenInfo.numScreens) {
EPHYR_LOG_ERROR ("bad screen number\n") ;
goto out;
}