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@obluda.cz>
Arrival-Date:	Wed Jan 09 10:30:01 UTC 2008
Reviewed by:	ed
MFC after:	3 days
This commit is contained in:
Eitan Adler 2013-05-11 13:32:38 +00:00
parent 2406f9e41b
commit a8de143c02

View File

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