From 22d5ddcd097010eead86750146a41908a436f801 Mon Sep 17 00:00:00 2001 From: Ulf Jordan Date: Wed, 24 Sep 2008 14:21:02 +0000 Subject: Fix overflow in modwin erase. Do not refresh modwin yet, since it is immediately overwritten by stdscr. Signed-off-by: Ulf Jordan Acked-by: Jordan Crouse git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3599 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/coreinfo/coreinfo.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'payloads/coreinfo') diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c index b9da49efd0..3d8f42b99a 100644 --- a/payloads/coreinfo/coreinfo.c +++ b/payloads/coreinfo/coreinfo.c @@ -276,13 +276,7 @@ int main(void) wattrset(modwin, COLOR_PAIR(2)); wattrset(menuwin, COLOR_PAIR(1) | A_BOLD); - for (i = 0; i < SCREEN_Y - 1; i++) { - wmove(modwin, i - 1, 0); - for (j = 0; j < SCREEN_X; j++) - waddch(modwin, ' '); - } - - wrefresh(modwin); + werase(modwin); for (i = 0; i < ARRAY_SIZE(categories); i++) { for (j = 0; j < categories[i].count; j++) -- cgit v1.2.3