Fix overflow in modwin erase. Do not refresh modwin yet, since it is

immediately overwritten by stdscr.

Signed-off-by: Ulf Jordan <jordan@chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3599 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Ulf Jordan 2008-09-24 14:21:02 +00:00 committed by Jordan Crouse
parent 902ed76ec4
commit 22d5ddcd09
1 changed files with 1 additions and 7 deletions

View File

@ -276,13 +276,7 @@ int main(void)
wattrset(modwin, COLOR_PAIR(2)); wattrset(modwin, COLOR_PAIR(2));
wattrset(menuwin, COLOR_PAIR(1) | A_BOLD); wattrset(menuwin, COLOR_PAIR(1) | A_BOLD);
for (i = 0; i < SCREEN_Y - 1; i++) { werase(modwin);
wmove(modwin, i - 1, 0);
for (j = 0; j < SCREEN_X; j++)
waddch(modwin, ' ');
}
wrefresh(modwin);
for (i = 0; i < ARRAY_SIZE(categories); i++) { for (i = 0; i < ARRAY_SIZE(categories); i++) {
for (j = 0; j < categories[i].count; j++) for (j = 0; j < categories[i].count; j++)