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 0fbde5634..7849d9491 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.12 2001/04/05 10:42:54 markus Exp $"); 27RCSID("$OpenBSD: sftp.c,v 1.13 2001/04/08 20:52:55 deraadt Exp $");
28 28
29/* XXX: commandline mode */ 29/* XXX: commandline mode */
30/* XXX: copy between two remote hosts (commandline) */ 30/* XXX: copy between two remote hosts (commandline) */
@@ -205,7 +205,7 @@ main(int argc, char **argv)
205 if (optind == argc || argc > (optind + 1)) 205 if (optind == argc || argc > (optind + 1))
206 usage(); 206 usage();
207 207
208 userhost = argv[optind]; 208 userhost = xstrdup(argv[optind]);
209 209
210 if ((host = strchr(userhost, '@')) == NULL) 210 if ((host = strchr(userhost, '@')) == NULL)
211 host = userhost; 211 host = userhost;