Replace \0s with spaces before sending strings to curses.

Signed-off-by: Bernhard Kauer <kauer@tudos.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
Bernhard Kauer 2010-05-21 14:05:55 +02:00 committed by Andrzej Zaborowski
parent a9cf98d939
commit f6d20d0f4f
1 changed files with 2 additions and 0 deletions

View File

@ -306,6 +306,8 @@ static inline int ds_get_bytes_per_pixel(DisplayState *ds)
typedef unsigned long console_ch_t;
static inline void console_write_ch(console_ch_t *dest, uint32_t ch)
{
if (!(ch & 0xff))
ch |= ' ';
cpu_to_le32wu((uint32_t *) dest, ch);
}