[coreboot] r3598 - trunk/payloads/libpayload/curses

svn at coreboot.org svn at coreboot.org
Wed Sep 24 16:17:03 CEST 2008


Author: jcrouse
Date: 2008-09-24 16:17:02 +0200 (Wed, 24 Sep 2008)
New Revision: 3598

Modified:
   trunk/payloads/libpayload/curses/tinycurses.c
Log:
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 <jordan at chalmers.se>
Acked-by: Jordan Crouse <jordan.crouse at amd.com>



Modified: trunk/payloads/libpayload/curses/tinycurses.c
===================================================================
--- trunk/payloads/libpayload/curses/tinycurses.c	2008-09-24 10:09:03 UTC (rev 3597)
+++ trunk/payloads/libpayload/curses/tinycurses.c	2008-09-24 14:17:02 UTC (rev 3598)
@@ -314,7 +314,7 @@
 
 	// Speaker init?
 
-	stdscr = newwin(SCREEN_Y, SCREEN_X + 1, 0, 0);
+	stdscr = newwin(SCREEN_Y, SCREEN_X, 0, 0);
 	// TODO: curscr, newscr?
 
 	werase(stdscr);





More information about the coreboot mailing list