From: Cole Robinson Date: Thu, 2 Oct 2008 14:10:20 +0000 (+0000) Subject: Fix starting qemu VM with multiple pty char devices. X-Git-Tag: LIBVIRT_0_5_0~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a166cdbb6e5ee01ad067239d3b974a6406ce00ee;p=thirdparty%2Flibvirt.git Fix starting qemu VM with multiple pty char devices. --- 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++;