diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-10 02:40:17 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-04-10 02:40:17 +0000 |
commit | 9492484a2781d8d2ed51ab0104942f2b80529a52 (patch) | |
tree | 2100926c42f5926bd80ac7612336766605cf5c32 /sftp.c | |
parent | cb17e99faeea6823a630b9769a1c8906ea0766b3 (diff) |
- deraadt@cvs.openbsd.org 2001/04/08 20:52:55
[sftp.c]
do not modify an actual argv[] entry
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) */ @@ -205,7 +205,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; |