From 7a430e4dc930115b620bf3aa2b9682ee1047dc48 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Thu, 8 Oct 2009 15:48:15 +0200 Subject: [PATCH] Fix creating mount_spec from string Don't consume the ending character. --- common/gmountspec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/gmountspec.c b/common/gmountspec.c index c55f996..1a9a60a 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; } -- 1.6.5.rc2