ia64/xen-unstable

view tools/ioemu/patches/vnc-title-domain-name @ 11569:317e8516d464

[qemu patches] Update patches for changeset 11561:c742b2ae920c.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
author Christian Limpach <Christian.Limpach@xensource.com>
date Thu Sep 21 19:28:35 2006 +0100 (2006-09-21)
parents a7dcafb540be
children 043f8799e68e
line source
1 Index: ioemu/vnc.c
2 ===================================================================
3 --- ioemu.orig/vnc.c 2006-09-21 19:10:53.000000000 +0100
4 +++ ioemu/vnc.c 2006-09-21 19:10:57.000000000 +0100
5 @@ -1012,6 +1012,7 @@
7 static int protocol_client_init(VncState *vs, char *data, size_t len)
8 {
9 + size_t l;
10 char pad[3] = { 0, 0, 0 };
12 vs->width = vs->ds->width;
13 @@ -1057,8 +1058,10 @@
15 vnc_write(vs, pad, 3); /* padding */
17 - vnc_write_u32(vs, 4);
18 - vnc_write(vs, "QEMU", 4);
19 + l = strlen(domain_name);
20 + vnc_write_u32(vs, l);
21 + vnc_write(vs, domain_name, l);
22 +
23 vnc_flush(vs);
25 vnc_read_when(vs, protocol_client_msg, 1);