svn commit: r250509 - head/usr.sbin/vidcontrol

Eitan Adler eadler at FreeBSD.org
Sat May 11 13:32:38 UTC 2013


Author: eadler
Date: Sat May 11 13:32:38 2013
New Revision: 250509
URL: http://svnweb.freebsd.org/changeset/base/250509

Log:
  The M_VESA_MODE_MAX is latest valid mode - not the first invalid.
  Permit its use in vidcontrol -i
  
  PR:		bin/119483
  Submitted by:	Dan Lukes <dan at obluda.cz>
  Arrival-Date:	Wed Jan 09 10:30:01 UTC 2008
  Reviewed by:	ed
  MFC after:	3 days

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

Modified: head/usr.sbin/vidcontrol/vidcontrol.c
==============================================================================
--- head/usr.sbin/vidcontrol/vidcontrol.c	Sat May 11 13:21:31 2013	(r250508)
+++ head/usr.sbin/vidcontrol/vidcontrol.c	Sat May 11 13:32:38 2013	(r250509)
@@ -959,7 +959,7 @@ show_mode_info(void)
 	printf("---------------------------------------"
 	       "---------------------------------------\n");
 
-	for (mode = 0; mode < M_VESA_MODE_MAX; ++mode) {
+	for (mode = 0; mode <= M_VESA_MODE_MAX; ++mode) {
 		_info.vi_mode = mode;
 		if (ioctl(0, CONS_MODEINFO, &_info))
 			continue;


More information about the svn-src-all mailing list