From a166cdbb6e5ee01ad067239d3b974a6406ce00ee Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 2 Oct 2008 14:10:20 +0000 Subject: [PATCH] Fix starting qemu VM with multiple pty char devices. --- ChangeLog | 4 ++++ src/qemu_driver.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index af6c1fb69e..69669e4fa0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 2 10:06:00 EST 2008 Cole Robinson + + * src/qemu_driver.c: Fix startup timeout with multiple pty devices. + Wed Oct 1 17:28:47 CEST 2008 Daniel Veillard * src/xend_internal.c: fix ordering when parsing multiple Xen diff --git a/src/qemu_driver.c b/src/qemu_driver.c index 9d8f75a782..a1e7285a54 100644 --- a/src/qemu_driver.c +++ b/src/qemu_driver.c @@ -566,7 +566,7 @@ static int qemudExtractMonitorPath(virConnectPtr conn, strncpy(*path, dev, (tmp-dev)); (*path)[(tmp-dev)] = '\0'; /* ... now further update offset till we get EOL */ - *offset += tmp - haystack; + *offset = tmp - haystack; return 0; } tmp++;