summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-04-25 11:44:45 +0100
committerRichard Hughes <richard@hughsie.com>2016-04-25 11:44:47 +0100
commit9269ec6dd8b7ed8122dfaff9e3c117818f3c50be (patch)
tree256846f0011269f939e88352df0d8da43e905523
parent886bbd596d1e94e0321d15cae5c7a0e6c074fbb2 (diff)
downloadappstream-glib-9269ec6dd8b7ed8122dfaff9e3c117818f3c50be.tar.gz
trivial: Try to shut up libasn
We could be using junk data using @search, but it's immediately overwritten with memset() so it's totally harmless.
-rw-r--r--libappstream-glib/as-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-utils.c b/libappstream-glib/as-utils.c
index 7e19ea6..f1588e9 100644
--- a/libappstream-glib/as-utils.c
+++ b/libappstream-glib/as-utils.c
@@ -1669,7 +1669,7 @@ as_utils_string_replace (GString *string, const gchar *search, const gchar *repl
search_len - replace_len);
memcpy (tmp, replace, replace_len);
} else if (search_len < replace_len) {
- g_string_insert_len (string, search_idx, search,
+ g_string_insert_len (string, search_idx, replace,
replace_len - search_len);
/* we have to treat this specially as it could have
* been reallocated when the insertion happened */