From: Bernhard Kauer Date: Fri, 21 May 2010 12:05:55 +0000 (+0200) Subject: Replace \0s with spaces before sending strings to curses. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f6d20d0f4f1e01f293c3d3b5772926275927c661;p=qemu.git Replace \0s with spaces before sending strings to curses. Signed-off-by: Bernhard Kauer Signed-off-by: Andrzej Zaborowski --- diff --git a/console.h b/console.h index 6def1152e6..3a75bcc4d0 100644 --- a/console.h +++ b/console.h @@ -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); }