From 6fc048f438aeba4956a1fae1014cf85603dcab4e Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 20 Jan 2004 05:27:09 +0000 Subject: [PATCH] Find last '@' in the user@site string, just in case the username has a '@' in it. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 87711c29..3e0705a0 100644 --- a/main.c +++ b/main.c @@ -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; -- 2.34.1