diff options
author | Roman Anasal <[email protected]> | 2015-05-13 13:36:06 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-06-30 19:41:22 +0200 |
commit | defa18d55c680bd54c1a23629fcd02c0b7a02b69 (patch) | |
tree | 6052d34805e7470aae28aba2c57def1268f6426e /open-terminal/caja-open-terminal.c | |
parent | f69545f3145e3cb41c3f3102be4277be96af2967 (diff) | |
download | caja-extensions-defa18d55c680bd54c1a23629fcd02c0b7a02b69.tar.bz2 caja-extensions-defa18d55c680bd54c1a23629fcd02c0b7a02b69.tar.xz |
open-terminal: fix parse_sftp_uri to return full host
with a port given in the uri parse_sftp_uri would strip the last
character of the host otherwise
Diffstat (limited to 'open-terminal/caja-open-terminal.c')
-rw-r--r-- | open-terminal/caja-open-terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/open-terminal/caja-open-terminal.c b/open-terminal/caja-open-terminal.c index a40befc..f6a5d87 100644 --- a/open-terminal/caja-open-terminal.c +++ b/open-terminal/caja-open-terminal.c @@ -197,7 +197,7 @@ parse_sftp_uri (GFile *file, char **host, guint *port, char **user, s = strchr(h, ':'); if (s && (p == NULL || s < p)) { - h_end = s-1; + h_end = s; *s = '\0'; s++; } else { |