Re: [Qemu-devel] [PATCH][STABLE] Fix corner case in chardev udp: parameter

2010-01-18 Thread Gerd Hoffmann
On 01/18/10 11:21, Jan Kiszka wrote: Gerd Hoffmann wrote: On 01/15/10 21:07, Jan Kiszka wrote: The missing '@' broke 'udp::@:' parsing. if (sscanf(p, "%64[^:]:%32[^@,]%n", host, port,&pos)< 2) { host[0] = 0; -if (sscanf(p, ":%32[^,]%n", port,&pos)< 1

Re: [Qemu-devel] [PATCH][STABLE] Fix corner case in chardev udp: parameter

2010-01-18 Thread Jan Kiszka
Gerd Hoffmann wrote: > On 01/15/10 21:07, Jan Kiszka wrote: >> The missing '@' broke 'udp::@:' parsing. > >> if (sscanf(p, "%64[^:]:%32[^@,]%n", host, port,&pos)< 2) { >> host[0] = 0; >> -if (sscanf(p, ":%32[^,]%n", port,&pos)< 1) { >> +if (sscanf(

Re: [Qemu-devel] [PATCH][STABLE] Fix corner case in chardev udp: parameter

2010-01-18 Thread Gerd Hoffmann
On 01/15/10 21:07, Jan Kiszka wrote: The missing '@' broke 'udp::@:' parsing. if (sscanf(p, "%64[^:]:%32[^@,]%n", host, port,&pos)< 2) { host[0] = 0; -if (sscanf(p, ":%32[^,]%n", port,&pos)< 1) { +if (sscanf(p, ":%32[^@,]%n", port,&pos)< 1) {

[Qemu-devel] [PATCH][STABLE] Fix corner case in chardev udp: parameter

2010-01-15 Thread Jan Kiszka
The missing '@' broke 'udp::@:' parsing. Signed-off-by: Jan Kiszka --- qemu-char.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index b13f8d4..a8a92f5 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2314,7 +2314,7 @@ QemuOpts *qemu_chr_parse