mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
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:
parent
a9cf98d939
commit
f6d20d0f4f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue