diff options
author | kraxel <kraxel> | 2006-11-07 14:36:31 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2006-11-07 14:36:31 +0000 |
commit | 73606a56f3811ac8b04971f2cc57047a6dd879d7 (patch) | |
tree | 02ad210c7a9c433e01e74c36b46aa5c37ca042b6 | |
parent | 701c9668cabe7a3c2bf0151a4474b981ec010c66 (diff) | |
download | xenwatch-73606a56f3811ac8b04971f2cc57047a6dd879d7.tar.gz |
fixups
-rw-r--r-- | apps.c | 2 | ||||
-rw-r--r-- | vnc.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -248,7 +248,7 @@ int open_vnc_session(char *host, int tcpport) char javaurl[64]; char vncurl[64]; - snprintf(display, sizeof(display), "%s:%d", host, tcpport - 5900); + snprintf(display, sizeof(display), "%s::%d", host, tcpport); snprintf(javaurl, sizeof(javaurl), "http://%s:%d/", host, tcpport - 100); snprintf(vncurl, sizeof(vncurl), "vnc://%s:%d/", host, tcpport); @@ -500,8 +500,8 @@ GtkWidget *vnc_open(char *hostname, int tcpport, unsigned long flags, goto err; /* rfb client */ - snprintf(display, sizeof(display), "%s:%d", hostname, tcpport - 5900); - fprintf(stderr, "%s: connecting to %s:%d\n", __FUNCTION__, hostname, tcpport - 5900); + snprintf(display, sizeof(display), "%s::%d", hostname, tcpport); + fprintf(stderr, "%s: connecting to %s\n", __FUNCTION__, display); if (8 == x11_red_bits) vnc->client = rfbGetClient(8,3,4); else |