Rev | Line | |
---|
[34] | 1 | Index: ioemu/vnc.c |
---|
| 2 | =================================================================== |
---|
| 3 | --- ioemu.orig/vnc.c 2006-12-06 23:46:11.000000000 +0000 |
---|
| 4 | +++ ioemu/vnc.c 2006-12-06 23:46:11.000000000 +0000 |
---|
| 5 | @@ -1026,6 +1026,7 @@ |
---|
| 6 | |
---|
| 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 }; |
---|
| 11 | |
---|
| 12 | vga_hw_update(); |
---|
| 13 | @@ -1073,8 +1074,10 @@ |
---|
| 14 | |
---|
| 15 | vnc_write(vs, pad, 3); /* padding */ |
---|
| 16 | |
---|
| 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); |
---|
| 24 | |
---|
| 25 | vnc_read_when(vs, protocol_client_msg, 1); |
---|
Note: See
TracBrowser
for help on using the repository browser.