From 902ed76ec4372d163a89d490ac0ab20732d65062 Mon Sep 17 00:00:00 2001 From: Ulf Jordan Date: Wed, 24 Sep 2008 14:17:02 +0000 Subject: [PATCH] Adjust width of stdscr to exactly SCREEN_X. This fixes alignment issues due to an extra space sent at end of each line, as well as a data corruption issue, which could result in undefined color pairs being referenced. Signed-off-by: Ulf Jordan Acked-by: Jordan Crouse git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3598 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- payloads/libpayload/curses/tinycurses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payloads/libpayload/curses/tinycurses.c b/payloads/libpayload/curses/tinycurses.c index 8a79ffb850..329c45c055 100644 --- a/payloads/libpayload/curses/tinycurses.c +++ b/payloads/libpayload/curses/tinycurses.c @@ -314,7 +314,7 @@ WINDOW *initscr(void) // Speaker init? - stdscr = newwin(SCREEN_Y, SCREEN_X + 1, 0, 0); + stdscr = newwin(SCREEN_Y, SCREEN_X, 0, 0); // TODO: curscr, newscr? werase(stdscr);