mirror of https://github.com/proxmox/mirror_qemu
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>master
parent
a9cf98d939
commit
f6d20d0f4f
|
@ -306,6 +306,8 @@ static inline int ds_get_bytes_per_pixel(DisplayState *ds)
|
||||||
typedef unsigned long console_ch_t;
|
typedef unsigned long console_ch_t;
|
||||||
static inline void console_write_ch(console_ch_t *dest, uint32_t ch)
|
static inline void console_write_ch(console_ch_t *dest, uint32_t ch)
|
||||||
{
|
{
|
||||||
|
if (!(ch & 0xff))
|
||||||
|
ch |= ' ';
|
||||||
cpu_to_le32wu((uint32_t *) dest, ch);
|
cpu_to_le32wu((uint32_t *) dest, ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue