summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2009-10-08 15:48:15 +0200
committerTomas Bzatek <tbzatek@redhat.com>2009-10-08 16:01:07 +0200
commit5ae16ae1feb4e6076fce5794b04481c780f406f4 (patch)
treecbb51dc65faa4208ce487b1c7affea2f669174af
parent0b09cc8e57bc5fa701dd685d648fd338b92b2c48 (diff)
downloadgvfs-5ae16ae1feb4e6076fce5794b04481c780f406f4.tar.gz
Fix creating mount_spec from string
Don't consume the ending character.
-rw-r--r--common/gmountspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/gmountspec.c b/common/gmountspec.c
index c55f9961..1a9a60a6 100644
--- a/common/gmountspec.c
+++ b/common/gmountspec.c
@@ -514,7 +514,7 @@ g_mount_spec_new_from_string (const gchar *str,
if (colon)
{
item.key = g_strdup ("type");
- item.value = g_strndup (str, colon - str - 1);
+ item.value = g_strndup (str, colon - str);
g_array_append_val (items, item);
str = colon + 1;
}