From defa18d55c680bd54c1a23629fcd02c0b7a02b69 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(-) 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 { -- cgit v1.2.1