summaryrefslogtreecommitdiff
path: root/libappstream-builder
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-08-11 22:46:33 +0100
committerRichard Hughes <richard@hughsie.com>2014-08-11 22:47:50 +0100
commite022b63766010acfdf01fdafc084484f8e0596a0 (patch)
tree0d22a701014c3541e2a8a093fea3b1164f7c2a25 /libappstream-builder
parentfabcd6c7ff5691834ffdfec06a9ad6af6934f768 (diff)
downloadappstream-glib-e022b63766010acfdf01fdafc084484f8e0596a0.tar.gz
trivial: Fix the return code of asb_string_replace()
Diffstat (limited to 'libappstream-builder')
-rw-r--r--libappstream-builder/asb-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c
index 7e07d7b..bc68187 100644
--- a/libappstream-builder/asb-utils.c
+++ b/libappstream-builder/asb-utils.c
@@ -475,7 +475,7 @@ asb_string_replace (GString *string, const gchar *search, const gchar *replace)
split = g_strsplit (string->str, search, -1);
tmp = g_strjoinv (replace, split);
g_string_assign (string, tmp);
- count = g_strv_length (split);
+ count = g_strv_length (split) - 1;
out:
g_strfreev (split);
g_free (tmp);