diff -r a5cca7226e8a tools/ioemu/patches/xenstore-write-vnc-port --- a/tools/ioemu/patches/xenstore-write-vnc-port Tue Jun 05 13:32:38 2007 -0400 +++ b/tools/ioemu/patches/xenstore-write-vnc-port Wed Jun 06 10:19:00 2007 -0400 @@ -23,7 +23,7 @@ Index: ioemu/xenstore.c + if (pasprintf(&buf, "%s/console/vnc-port", path) == -1) + goto out; + -+ if (pasprintf(&portstr, "%d", 5900 + display) == -1) ++ if (pasprintf(&portstr, "%d", display) == -1) + goto out; + + if (xs_write(xsh, XBT_NULL, buf, portstr, strlen(portstr)) == 0) diff -r a5cca7226e8a tools/ioemu/xenstore.c --- a/tools/ioemu/xenstore.c Tue Jun 05 13:32:38 2007 -0400 +++ b/tools/ioemu/xenstore.c Wed Jun 06 10:17:08 2007 -0400 @@ -367,7 +367,7 @@ void xenstore_write_vncport(int display) if (pasprintf(&buf, "%s/console/vnc-port", path) == -1) goto out; - if (pasprintf(&portstr, "%d", 5900 + display) == -1) + if (pasprintf(&portstr, "%d", display) == -1) goto out; if (xs_write(xsh, XBT_NULL, buf, portstr, strlen(portstr)) == 0)