diff options
author | Matt Johnston <matt@ucc.asn.au> | 2016-03-10 21:37:35 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2016-03-10 21:37:35 +0800 |
commit | a991d3b56bdd2750c772cb48bc1b932ed1714ad3 (patch) | |
tree | d595af33e4b675dd7b229ed0922ac355413b38b4 /svr-x11fwd.c | |
parent | 26a1a0a3bc4420e57334d3ecc827f14ffcb9f24a (diff) | |
parent | a84ce21aece29167f3312c127912404f6e486146 (diff) |
merge github master
Diffstat (limited to 'svr-x11fwd.c')
-rw-r--r-- | svr-x11fwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-x11fwd.c b/svr-x11fwd.c index 7fe9a3a..2af4141 100644 --- a/svr-x11fwd.c +++ b/svr-x11fwd.c @@ -165,7 +165,7 @@ void x11setauth(struct ChanSess *chansess) { } /* create the DISPLAY string */ - val = snprintf(display, sizeof(display), "localhost:%d.%d", + val = snprintf(display, sizeof(display), "localhost:%d.%u", chansess->x11port - X11BASEPORT, chansess->x11screennum); if (val < 0 || val >= (int)sizeof(display)) { /* string was truncated */ @@ -175,7 +175,7 @@ void x11setauth(struct ChanSess *chansess) { addnewvar("DISPLAY", display); /* create the xauth string */ - val = snprintf(display, sizeof(display), "unix:%d.%d", + val = snprintf(display, sizeof(display), "unix:%d.%u", chansess->x11port - X11BASEPORT, chansess->x11screennum); if (val < 0 || val >= (int)sizeof(display)) { /* string was truncated */ |