summaryrefslogtreecommitdiff
path: root/fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'fd.c')
-rw-r--r--fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fd.c b/fd.c
index af08595..69a00ee 100644
--- a/fd.c
+++ b/fd.c
@@ -279,7 +279,7 @@ MakeConnection(
char address[256];
int connect_stat;
- snprintf (address, sizeof(address), "%s:%d", server, port - ServerBasePort);
+ snprintf (address, sizeof(address), "%s:%ld", server, port - ServerBasePort);
if ( (*trans_conn = _X11TransOpenCOTSClient(address)) == NULL ) {
debug(1,(stderr, "OpenCOTSClient failed\n"));
panic("Can't open connection to Server");