diff options
author | yokota <yokota@FreeBSD.org> | 1999-09-19 08:04:07 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1999-09-19 08:04:07 +0000 |
commit | 30dba378e9ab72e2f18039afa73b5517a1b7f4e5 (patch) | |
tree | 09e83ae1b3cf849fbdd416871d974a455a27955e /usr.sbin/vidcontrol/vidcontrol.c | |
parent | 8fc419d72521752495cd654c7440111100483b79 (diff) | |
download | FreeBSD-src-30dba378e9ab72e2f18039afa73b5517a1b7f4e5.zip FreeBSD-src-30dba378e9ab72e2f18039afa73b5517a1b7f4e5.tar.gz |
Fix -s option.
PR: bin/13799
Diffstat (limited to 'usr.sbin/vidcontrol/vidcontrol.c')
-rw-r--r-- | usr.sbin/vidcontrol/vidcontrol.c | 2 |
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)"); |