diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2003-10-07 07:04:17 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2003-10-07 07:04:17 +0000 |
commit | c8fcc4d255ec8c8e93300db2f735cb75a943484b (patch) | |
tree | 9eef075edc2c627065d15417874cc7516d3caa99 /usr.bin | |
parent | 5a045930e6f653aea39d65fe94ea5d2c43f9d031 (diff) |
sftp quoting fix from admorten AT umich.edu; ok markus@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sftp-int.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/sftp-int.c b/usr.bin/ssh/sftp-int.c index c238c2e09bf..a4cfeab1934 100644 --- a/usr.bin/ssh/sftp-int.c +++ b/usr.bin/ssh/sftp-int.c @@ -25,7 +25,7 @@ /* XXX: recursive operations */ #include "includes.h" -RCSID("$OpenBSD: sftp-int.c,v 1.62 2003/08/25 08:13:09 fgsch Exp $"); +RCSID("$OpenBSD: sftp-int.c,v 1.63 2003/10/07 07:04:16 djm Exp $"); #include <glob.h> @@ -352,6 +352,7 @@ get_pathname(const char **cpp, char **path) /* Search for terminating quote, unescape some chars */ for (i = j = 0; i <= strlen(cp); i++) { if (cp[i] == quot) { /* Found quote */ + i++; (*path)[j] = '\0'; break; } |