mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
console: fix off-by-one errror
The maximum allowed value for x axis is one less than cons.w. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@870 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -346,7 +346,7 @@ do_con_trol(unsigned char ch)
|
||||
draw_line(cons.y);
|
||||
return;
|
||||
case 2: /* erase whole line */
|
||||
for (i = 0; i <= cons.w; i++)
|
||||
for (i = 0; i < cons.w; i++)
|
||||
cons.buf[cons.y * cons.w + i] = ' ';
|
||||
draw_line(cons.y);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user