diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2009-10-08 15:48:15 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2009-10-08 15:58:31 +0200 |
commit | 80dbd15b64ec4907f1041692c23af6b90ad305ca (patch) | |
tree | 6b222974822ff4a1df8b04a5a6ae386ed97d7d4a /common | |
parent | bffa8a049d7d1ce681af3b0288684a0e64a56a0b (diff) | |
download | gvfs-80dbd15b64ec4907f1041692c23af6b90ad305ca.tar.gz |
Fix creating mount_spec from string
Don't consume the ending character.
Diffstat (limited to 'common')
-rw-r--r-- | common/gmountspec.c | 2 |
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; } |