summaryrefslogtreecommitdiff
path: root/payloads/coreinfo
diff options
context:
space:
mode:
authorUlf Jordan <jordan@chalmers.se>2008-09-24 14:21:02 +0000
committerJordan Crouse <jordan.crouse@amd.com>2008-09-24 14:21:02 +0000
commit22d5ddcd097010eead86750146a41908a436f801 (patch)
treec2c4d9def0da3b25ddb4d16fcefa2e76f893a44f /payloads/coreinfo
parent902ed76ec4372d163a89d490ac0ab20732d65062 (diff)
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
Diffstat (limited to 'payloads/coreinfo')
-rw-r--r--payloads/coreinfo/coreinfo.c8
1 files changed, 1 insertions, 7 deletions
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++)