vidcontrol: correct history size error message
`vidcontrol -h 0` is acceptable, so be explicit that it's less than zero that is not allowed. Reported by: Siva Mahadevan Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2eb3e51e71
commit
82edb108da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326057
@ -1359,7 +1359,7 @@ set_history(char *opt)
|
||||
|
||||
if ((*opt == '\0') || size < 0) {
|
||||
revert();
|
||||
errx(1, "argument must be a positive number");
|
||||
errx(1, "argument must not be less than zero");
|
||||
}
|
||||
|
||||
if (ioctl(0, CONS_HISTORY, &size) == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user