X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=raw.c;h=a7fbbc5cc5f32e8c23feae149dc53c5a3193795a;hb=8da4fa506389910599c59b87ba1b799efd6d3ae1;hp=1d9f854cd65f77e1b9b7cec754a58462133aaa2e;hpb=0348f570771a0412609de947778cad9d5b3dca93;p=PuTTY.git diff --git a/raw.c b/raw.c index 1d9f854c..a7fbbc5c 100644 --- a/raw.c +++ b/raw.c @@ -185,15 +185,10 @@ static const char *raw_init(void *frontend_handle, void **backend_handle, sfree(*realhost); *realhost = dupstr(loghost); - colon = strrchr(*realhost, ':'); - if (colon) { - /* - * FIXME: if we ever update this aspect of ssh.c for - * IPv6 literal management, this should change in line - * with it. - */ + + colon = host_strrchr(*realhost, ':'); + if (colon) *colon++ = '\0'; - } } return NULL;