Fix -s option.

PR: bin/13799
This commit is contained in:
Kazutaka YOKOTA 1999-09-19 08:04:07 +00:00
parent 6837f60c8e
commit a0d3b21c88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51393

View File

@ -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)");