aboutsummaryrefslogtreecommitdiffstats
path: root/camel/url-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/url-util.c')
-rw-r--r--camel/url-util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/camel/url-util.c b/camel/url-util.c
index 39294e0d36..5fea4d6542 100644
--- a/camel/url-util.c
+++ b/camel/url-util.c
@@ -125,7 +125,7 @@ Gurl *g_url_new (const gchar* url_string)
}
if (slash && *(slash + 1))
- g_url->path = g_strdup (slash + 1);
+ g_url->path = g_strdup (slash);
else
g_url->path = NULL;
@@ -135,7 +135,7 @@ Gurl *g_url_new (const gchar* url_string)
gchar *
g_url_to_string (const Gurl *url, gboolean show_passwd)
{
- return g_strdup_printf("%s%s%s%s%s%s%s%s%s%s%s%s%s",
+ return g_strdup_printf("%s%s%s%s%s%s%s%s%s%s%s%s",
url->protocol ? url->protocol : "",
url->protocol ? "://" : "",
url->user ? url->user : "",
@@ -147,7 +147,6 @@ g_url_to_string (const Gurl *url, gboolean show_passwd)
url->host,
url->port ? ":" : "",
url->port ? url->port : "",
- url->path ? "/" : "",
url->path ? url->path : "");
}