Author: jcrouse Date: 2008-09-24 16:21:02 +0200 (Wed, 24 Sep 2008) New Revision: 3599
Modified: trunk/payloads/coreinfo/coreinfo.c Log: 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
Modified: trunk/payloads/coreinfo/coreinfo.c =================================================================== --- trunk/payloads/coreinfo/coreinfo.c 2008-09-24 14:17:02 UTC (rev 3598) +++ trunk/payloads/coreinfo/coreinfo.c 2008-09-24 14:21:02 UTC (rev 3599) @@ -276,14 +276,8 @@ 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, ' '); - } + werase(modwin);
- wrefresh(modwin); - for (i = 0; i < ARRAY_SIZE(categories); i++) { for (j = 0; j < categories[i].count; j++) categories[i].modules[j]->init();