Author: emaste
Date: Tue Nov 21 13:55:10 2017
New Revision: 326057
URL: https://svnweb.freebsd.org/changeset/base/326057

Log:
  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

Modified:
  head/usr.sbin/vidcontrol/vidcontrol.c

Modified: head/usr.sbin/vidcontrol/vidcontrol.c
==============================================================================
--- head/usr.sbin/vidcontrol/vidcontrol.c       Tue Nov 21 13:19:38 2017        
(r326056)
+++ head/usr.sbin/vidcontrol/vidcontrol.c       Tue Nov 21 13:55:10 2017        
(r326057)
@@ -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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to