diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-04-08 20:52:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-04-08 20:52:56 +0000 |
commit | 113b4a3dfa2671563531d40d85b9f013f2c6ff3d (patch) | |
tree | ce1cf7ec0ea38ac4fe99a7221178e70a47a1bf47 /usr.bin/ssh/sftp.c | |
parent | af55c05a225129b7bd1bf888faea10bf47b467f9 (diff) |
do not modify an actual argv[] entry
Diffstat (limited to 'usr.bin/ssh/sftp.c')
-rw-r--r-- | usr.bin/ssh/sftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c index 7e61c5333fb..56f72dcadbf 100644 --- a/usr.bin/ssh/sftp.c +++ b/usr.bin/ssh/sftp.c @@ -24,7 +24,7 @@ #include "includes.h" -RCSID("$OpenBSD: sftp.c,v 1.12 2001/04/05 10:42:54 markus Exp $"); +RCSID("$OpenBSD: sftp.c,v 1.13 2001/04/08 20:52:55 deraadt Exp $"); /* XXX: commandline mode */ /* XXX: copy between two remote hosts (commandline) */ @@ -198,7 +198,7 @@ main(int argc, char **argv) if (optind == argc || argc > (optind + 1)) usage(); - userhost = argv[optind]; + userhost = xstrdup(argv[optind]); if ((host = strchr(userhost, '@')) == NULL) host = userhost; |