]> andersk Git - openssh.git/blobdiff - sftp.c
- markus@cvs.openbsd.org 2002/11/27 17:53:35
[openssh.git] / sftp.c
diff --git a/sftp.c b/sftp.c
index c4055b91ee47f7c2d5f19756354f4240f212d3d0..c173e58cb6b12ae40abc03d516a204b3495fa3cf 100644 (file)
--- a/sftp.c
+++ b/sftp.c
@@ -24,7 +24,7 @@
 
 #include "includes.h"
 
-RCSID("$OpenBSD: sftp.c,v 1.31 2002/07/25 01:16:59 mouring Exp $");
+RCSID("$OpenBSD: sftp.c,v 1.32 2002/11/27 17:53:35 markus Exp $");
 
 /* XXX: short-form remote directory listings (like 'ls -C') */
 
@@ -197,7 +197,7 @@ main(int argc, char **argv)
                        file1 = cp;
                }
 
-               if ((host = strchr(userhost, '@')) == NULL)
+               if ((host = strrchr(userhost, '@')) == NULL)
                        host = userhost;
                else {
                        *host++ = '\0';
This page took 0.255247 seconds and 4 git commands to generate.