projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
`ampersat-in-username': tweak `strchr' to `strrchr' where necessary to
[u/mdw/putty]
/
unix
/
uxplink.c
diff --git
a/unix/uxplink.c
b/unix/uxplink.c
index
ee446ec
..
d144cb9
100644
(file)
--- a/
unix/uxplink.c
+++ b/
unix/uxplink.c
@@
-471,7
+471,7
@@
int main(int argc, char **argv)
/* See if host is of the form user@host */
if (cfg.host[0] != '\0') {
/* See if host is of the form user@host */
if (cfg.host[0] != '\0') {
- char *atsign = strchr(cfg.host, '@');
+ char *atsign = str
r
chr(cfg.host, '@');
/* Make sure we're not overflowing the user field */
if (atsign) {
if (atsign - cfg.host < sizeof cfg.username) {
/* Make sure we're not overflowing the user field */
if (atsign) {
if (atsign - cfg.host < sizeof cfg.username) {