Author: stuge Date: 2008-08-09 22:15:00 +0200 (Sat, 09 Aug 2008) New Revision: 3492
Modified: trunk/payloads/coreinfo/ramdump_module.c Log: Fix garbage characters on screen. mvwaddch inserts one character, not a character array.
Signed-off-by: Ulf Jordan jordan@chalmers.se Acked-by: Jordan Crouse jordan.crouse@amd.com Acked-by: Peter Stuge peter@stuge.se
Modified: trunk/payloads/coreinfo/ramdump_module.c =================================================================== --- trunk/payloads/coreinfo/ramdump_module.c 2008-08-09 19:34:56 UTC (rev 3491) +++ trunk/payloads/coreinfo/ramdump_module.c 2008-08-09 20:15:00 UTC (rev 3492) @@ -40,8 +40,8 @@ for (i = 1; i < 257; i++) { if (x == 0) { mvwprintw(win, row + y, col - 1, "%08x", addr + 16 * y); - mvwaddch(win, row + y, col + 59, (const chtype)"|"); - mvwaddch(win, row + y, col + 76, (const chtype)"|"); + mvwaddch(win, row + y, col + 59, '|'); + mvwaddch(win, row + y, col + 76, '|'); } mvwprintw(win, row + y, col + x + 9, "%02x", ptr[i - 1]); mvwprintw(win, row + y, 62 + count++, "%c", ptr[i - 1]);