From: simon Date: Mon, 16 Apr 2001 16:19:30 +0000 (+0000) Subject: Quote the hostname in the `unable to connect' box so that if the X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/582c005495b54e9c107029b70a0ae9e8c892634c Quote the hostname in the `unable to connect' box so that if the user starts up N PuTTYs at once and one reports failure, they know which one. git-svn-id: svn://svn.tartarus.org/sgt/putty@1051 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/window.c b/window.c index ec27dc88..4c4360c4 100644 --- a/window.c +++ b/window.c @@ -444,7 +444,9 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) { error = back->init (cfg.host, cfg.port, &realhost); if (error) { - sprintf(msg, "Unable to open connection:\n%s", error); + sprintf(msg, "Unable to open connection to\n" + "%.800s\n" + "%s", cfg.host, error); MessageBox(NULL, msg, "PuTTY Error", MB_ICONERROR | MB_OK); return 0; }