]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Don't read outside of VGA screen
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 21 Jun 2010 00:08:48 +0000 (02:08 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 21 Jun 2010 00:08:48 +0000 (02:08 +0200)
term/i386/pc/vga_text.c

index bfa934a409488fb813642a629bd2d0685fd4032e..717a7576e6a1c06b604ce582b4fb84273605f077 100644 (file)
@@ -58,9 +58,11 @@ inc_y (void)
   else
     {
       int x, y;
-      for (y = 0; y < ROWS; y++)
+      for (y = 0; y < ROWS - 1; y++)
         for (x = 0; x < COLS; x++)
           screen_write_char (x, y, screen_read_char (x, y + 1));
+      for (x = 0; x < COLS; x++)
+       screen_write_char (x, ROWS - 1, ' ' | (grub_console_cur_color << 8));
     }
 }