[Qemu-devel] [PATCH] hmp: hmp_memchar_read(): skip non-printable chars

2013-01-29 Thread Luiz Capitulino
Otherwise we can get funny stuff printed and if the buffer contains a '\0' char it won't be fully printed. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- hmp.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/hmp.c b/hmp.c index 249b89b..5bfc8bd

Re: [Qemu-devel] [PATCH] hmp: hmp_memchar_read(): skip non-printable chars

2013-01-29 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: Otherwise we can get funny stuff printed and if the buffer contains a '\0' char it won't be fully printed. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- hmp.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-)

Re: [Qemu-devel] [PATCH] hmp: hmp_memchar_read(): skip non-printable chars

2013-01-29 Thread Luiz Capitulino
On Tue, 29 Jan 2013 14:20:30 +0100 Markus Armbruster arm...@redhat.com wrote: Luiz Capitulino lcapitul...@redhat.com writes: Otherwise we can get funny stuff printed and if the buffer contains a '\0' char it won't be fully printed. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com