X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/49b8f9c43e0f312c986c2e5eb882aa77099b14c6..c61c9cdfb554e418b6d880dc7faebdfee8f32c9b:/ssh.c diff --git a/ssh.c b/ssh.c index 08a0aff3..42e20775 100644 --- a/ssh.c +++ b/ssh.c @@ -3582,7 +3582,8 @@ static void ssh1_protocol(Ssh ssh, unsigned char *in, int inlen, int ispkt) } if (sport && dport) { /* Set up a description of the source port. */ - char *sportdesc = dupprintf("%.*s%.*s%.*s%.*s%d%.*s", + static char *sportdesc; + sportdesc = dupprintf("%.*s%.*s%.*s%.*s%d%.*s", (int)(*saddr?strlen(saddr):0), *saddr?saddr:NULL, (int)(*saddr?1:0), ":", (int)(sserv ? strlen(sports) : 0), sports,