summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/vidcontrol/vidcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/vidcontrol/vidcontrol.c b/usr.sbin/vidcontrol/vidcontrol.c
index 0f8b808..efa6c2d 100644
--- a/usr.sbin/vidcontrol/vidcontrol.c
+++ b/usr.sbin/vidcontrol/vidcontrol.c
@@ -386,7 +386,7 @@ set_console(char *arg)
}
n = atoi(arg);
- if (n < 1 || n > 12) {
+ if (n < 1 || n > 16) {
warnx("console number out of range");
} else if (ioctl(0, VT_ACTIVATE, (caddr_t) (long) n) == -1)
warn("ioctl(VT_ACTIVATE)");
OpenPOWER on IntegriCloud