diff options
author | Roman Anasal <[email protected]> | 2015-05-13 13:36:06 +0200 |
---|---|---|
committer | Monsta <[email protected]> | 2015-07-13 13:10:36 +0300 |
commit | 1f7d207432d6bf65076c62dd3b658496344b094b (patch) | |
tree | 0df9ca394c74d1cae65c5b3cd37c1d8dd6868a22 | |
parent | 15043678502f49a89e1c52aec623f54443f22f0e (diff) | |
download | caja-extensions-1f7d207432d6bf65076c62dd3b658496344b094b.tar.bz2 caja-extensions-1f7d207432d6bf65076c62dd3b658496344b094b.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
-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 1c9e612..cd320c4 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 { |