提交 f6d20d0f 编写于 作者: B Bernhard Kauer 提交者: Andrzej Zaborowski

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

Signed-off-by: NBernhard Kauer <kauer@tudos.org>
Signed-off-by: NAndrzej Zaborowski <andrew.zaborowski@intel.com>
上级 a9cf98d9
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册