diff options
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp.c,v 1.116 2010/01/04 02:03:57 djm Exp $ */ | 1 | /* $OpenBSD: sftp.c,v 1.117 2010/01/08 21:50:49 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -1568,7 +1568,7 @@ complete_ambiguous(const char *word, char **list, size_t count) | |||
1568 | if (matchlen > strlen(word)) { | 1568 | if (matchlen > strlen(word)) { |
1569 | char *tmp = xstrdup(list[0]); | 1569 | char *tmp = xstrdup(list[0]); |
1570 | 1570 | ||
1571 | tmp[matchlen] = NULL; | 1571 | tmp[matchlen] = '\0'; |
1572 | return tmp; | 1572 | return tmp; |
1573 | } | 1573 | } |
1574 | } | 1574 | } |
@@ -2062,7 +2062,7 @@ int | |||
2062 | main(int argc, char **argv) | 2062 | main(int argc, char **argv) |
2063 | { | 2063 | { |
2064 | int in, out, ch, err; | 2064 | int in, out, ch, err; |
2065 | char *host, *userhost, *cp, *file2 = NULL; | 2065 | char *host = NULL, *userhost, *cp, *file2 = NULL; |
2066 | int debug_level = 0, sshver = 2; | 2066 | int debug_level = 0, sshver = 2; |
2067 | char *file1 = NULL, *sftp_server = NULL; | 2067 | char *file1 = NULL, *sftp_server = NULL; |
2068 | char *ssh_program = _PATH_SSH_PROGRAM, *sftp_direct = NULL; | 2068 | char *ssh_program = _PATH_SSH_PROGRAM, *sftp_direct = NULL; |