mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-12 18:13:50 -05:00
Strip off and ignore `:port' on the end of a hostname.
[originally from svn r1099]
This commit is contained in:
parent
3730ada5ce
commit
c1c1bc4715
5
window.c
5
window.c
@ -299,6 +299,11 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
|||||||
memmove(cfg.host, atsign + 1, 1 + strlen(atsign + 1));
|
memmove(cfg.host, atsign + 1, 1 + strlen(atsign + 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Trim a colon suffix off the hostname if it's there.
|
||||||
|
*/
|
||||||
|
cfg.host[strcspn(cfg.host, ":")] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user