~mdw
/
sgt
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
32874ae
)
Strip off and ignore `:port' on the end of a hostname.
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 6 May 2001 15:09:32 +0000
(15:09 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 6 May 2001 15:09:32 +0000
(15:09 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@1099
cda61777
-01e9-0310-a592-
d414129be87e
window.c
patch
|
blob
|
blame
|
history
diff --git
a/window.c
b/window.c
index
063f0db
..
3c67ddf
100644
(file)
--- a/
window.c
+++ b/
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));
}
}
+
+ /*
+ * Trim a colon suffix off the hostname if it's there.
+ */
+ cfg.host[strcspn(cfg.host, ":")] = '\0';
}
/*