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]
/
scp.c
diff --git
a/scp.c
b/scp.c
index
fe341be
..
1c601e9
100644
(file)
--- a/
scp.c
+++ b/
scp.c
@@
-370,7
+370,7
@@
static void do_cmd(char *host, char *user, char *cmd)
/* 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) {