From 1f7d207432d6bf65076c62dd3b658496344b094b Mon Sep 17 00:00:00 2001 From: Roman Anasal Date: Wed, 13 May 2015 13:36:06 +0200 Subject: 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 --- open-terminal/caja-open-terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'open-terminal/caja-open-terminal.c') 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 { -- cgit v1.2.1