From 85d2f0b6b27d11038695bf083c382869b0ca19f9 Mon Sep 17 00:00:00 2001 From: kraxel Date: Fri, 10 Nov 2006 14:27:23 +0000 Subject: ::tcp -> :dpy --- vnc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit