aboutsummaryrefslogtreecommitdiffstats
path: root/vnc.c
diff options
context:
space:
mode:
authorkraxel <kraxel>2006-11-10 14:27:23 +0000
committerkraxel <kraxel>2006-11-10 14:27:23 +0000
commit85d2f0b6b27d11038695bf083c382869b0ca19f9 (patch)
tree662541a6e84c50dd133088dc2d1bd92621378612 /vnc.c
parent73606a56f3811ac8b04971f2cc57047a6dd879d7 (diff)
downloadxenwatch-85d2f0b6b27d11038695bf083c382869b0ca19f9.tar.gz
::tcp -> :dpy
Diffstat (limited to 'vnc.c')
-rw-r--r--vnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnc.c b/vnc.c
index fa62096..09972ef 100644
--- a/vnc.c
+++ b/vnc.c
@@ -500,7 +500,7 @@ GtkWidget *vnc_open(char *hostname, int tcpport, unsigned long flags,
goto err;
/* rfb client */
- snprintf(display, sizeof(display), "%s::%d", hostname, tcpport);
+ snprintf(display, sizeof(display), "%s:%d", hostname, tcpport - 5900);
fprintf(stderr, "%s: connecting to %s\n", __FUNCTION__, display);
if (8 == x11_red_bits)
vnc->client = rfbGetClient(8,3,4);