summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp.c b/sftp.c
index c4055b91e..c173e58cb 100644
--- a/sftp.c
+++ b/sftp.c
@@ -24,7 +24,7 @@
24 24
25#include "includes.h" 25#include "includes.h"
26 26
27RCSID("$OpenBSD: sftp.c,v 1.31 2002/07/25 01:16:59 mouring Exp $"); 27RCSID("$OpenBSD: sftp.c,v 1.32 2002/11/27 17:53:35 markus Exp $");
28 28
29/* XXX: short-form remote directory listings (like 'ls -C') */ 29/* XXX: short-form remote directory listings (like 'ls -C') */
30 30
@@ -197,7 +197,7 @@ main(int argc, char **argv)
197 file1 = cp; 197 file1 = cp;
198 } 198 }
199 199
200 if ((host = strchr(userhost, '@')) == NULL) 200 if ((host = strrchr(userhost, '@')) == NULL)
201 host = userhost; 201 host = userhost;
202 else { 202 else {
203 *host++ = '\0'; 203 *host++ = '\0';