diff options
author | Bernhard Kauer <kauer@os.inf.tu-dresden.de> | 2010-05-21 14:05:55 +0200 |
---|---|---|
committer | Andrzej Zaborowski <balrog@zabor.org> | 2010-05-21 14:05:55 +0200 |
commit | f6d20d0f4f1e01f293c3d3b5772926275927c661 (patch) | |
tree | 5ef1bee019d5ad2cd07924a800f60b95610df3f0 /console.h | |
parent | a9cf98d939c4f6539fad7e7d812ea16d96ba3dc9 (diff) | |
download | qemu-f6d20d0f4f1e01f293c3d3b5772926275927c661.zip qemu-f6d20d0f4f1e01f293c3d3b5772926275927c661.tar.gz qemu-f6d20d0f4f1e01f293c3d3b5772926275927c661.tar.bz2 |
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>
Diffstat (limited to 'console.h')
-rw-r--r-- | console.h | 2 |
1 files changed, 2 insertions, 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); } |