summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wsdisplay.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-03-15 20:04:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-03-15 20:04:38 +0000
commitc2cf0d972013ff2806e98e0b0c283cf38ac50fd7 (patch)
tree93f7bb36a695de54b6f438979d358a61a5800169 /sys/dev/wscons/wsdisplay.c
parent7a98474e0906ac069d94837486659e4625c3cf41 (diff)
Correct checks against cd_ndevs - valid numbers are strictly inferior to
cd_ndevs.
Diffstat (limited to 'sys/dev/wscons/wsdisplay.c')
-rw-r--r--sys/dev/wscons/wsdisplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c
index 8c412d5c8b7..144ca307378 100644
--- a/sys/dev/wscons/wsdisplay.c
+++ b/sys/dev/wscons/wsdisplay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsdisplay.c,v 1.65 2005/11/05 16:04:20 uwe Exp $ */
+/* $OpenBSD: wsdisplay.c,v 1.66 2006/03/15 20:04:37 miod Exp $ */
/* $NetBSD: wsdisplay.c,v 1.82 2005/02/27 00:27:52 perry Exp $ */
/*
@@ -3100,7 +3100,7 @@ wsmoused_release(struct wsdisplay_softc *sc)
if (is_wsmouse && (minor(sc->wsmoused_dev) <= NWSMOUSE)) {
/* /dev/wsmouseX case */
- if (minor(sc->wsmoused_dev) <= wsmouse_cd.cd_ndevs) {
+ if (minor(sc->wsmoused_dev) < wsmouse_cd.cd_ndevs) {
wsms_dev =
wsms_dev_list[minor(sc->wsmoused_dev)];
}