aboutsummaryrefslogtreecommitdiff
path: root/qemu-char.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-03-07 11:28:48 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-03-14 22:43:37 +0100
commit39324ca488ac8f7124b3698d28bf46b90d9acd84 (patch)
treee583aefde1ffed8172451a64c23a90866606cbdc /qemu-char.c
parent18141ed67f5ee8c7e8e3f8bffdb24d7b8cdbc270 (diff)
Fix corner case in chardev udp: parameter
The missing '@' broke 'udp::<port>@:<port>' parsing. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'qemu-char.c')
-rw-r--r--qemu-char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-char.c b/qemu-char.c
index 0e25ef3885..40cfefadd3 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -2341,7 +2341,7 @@ QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename)
qemu_opt_set(opts, "backend", "udp");
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) {
goto fail;
}
}