Find last '@' in the user@site string, just in case the username has

a '@' in it.
This commit is contained in:
Wayne Davison
2004-01-20 05:27:09 +00:00
parent 5d2a707139
commit 6fc048f438

2
main.c
View File

@@ -819,7 +819,7 @@ static int start_client(int argc, char *argv[])
}
if (shell_machine) {
p = strchr(shell_machine,'@');
p = strrchr(shell_machine,'@');
if (p) {
*p = 0;
shell_user = shell_machine;