summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-09-19 08:04:07 +0000
committeryokota <yokota@FreeBSD.org>1999-09-19 08:04:07 +0000
commit30dba378e9ab72e2f18039afa73b5517a1b7f4e5 (patch)
tree09e83ae1b3cf849fbdd416871d974a455a27955e /usr.sbin
parent8fc419d72521752495cd654c7440111100483b79 (diff)
downloadFreeBSD-src-30dba378e9ab72e2f18039afa73b5517a1b7f4e5.zip
FreeBSD-src-30dba378e9ab72e2f18039afa73b5517a1b7f4e5.tar.gz
Fix -s option.
PR: bin/13799
Diffstat (limited to 'usr.sbin')
-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