From: jacob Date: Thu, 18 Nov 2004 17:13:45 +0000 (+0000) Subject: *sigh* X11 forwarding to a local display (":0" or similar) specified in the X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/0ca70bfcab1157eb021c1472b3a6e6a6c1163d25 *sigh* X11 forwarding to a local display (":0" or similar) specified in the environment rather than the configuraton was failing as of 0.56 (introduced in r4604). This probably only bit users of Unix PuTTY. Didn't spot in testing as I was forwarding to already-forwarded displays. I really wasn't having a good month that month, was I? git-svn-id: svn://svn.tartarus.org/sgt/putty@4816 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/x11fwd.c b/x11fwd.c index 80362ec0..d748da13 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -242,7 +242,7 @@ char *x11_display(const char *display) { ret = dupstr(display); if(ret[0] == ':') { /* no transport specified, use whatever we think is best */ - char *s = dupcat(platform_x11_best_transport, display, (char *)0); + char *s = dupcat(platform_x11_best_transport, ret, (char *)0); sfree(ret); return s; } else