From ce6d523094a18838d936cbb5ba0cdf4dddd40313 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 20 Apr 2015 11:47:02 -0400 Subject: [PATCH] Replace g_string_insert_len() by g_string_append_len() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit bt_ctf_field_string_append_len uses g_string_insert_len() with a position of "-1" to append to the end of the string field's payload which is what g_string_append_len() does by default. Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/event-fields.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/ctf/ir/event-fields.c b/formats/ctf/ir/event-fields.c index c80c12fe..80a6655b 100644 --- a/formats/ctf/ir/event-fields.c +++ b/formats/ctf/ir/event-fields.c @@ -972,7 +972,7 @@ int bt_ctf_field_string_append_len(struct bt_ctf_field *field, } if (string_field->payload) { - g_string_insert_len(string_field->payload, -1, value, + g_string_append_len(string_field->payload, value, effective_length); } else { string_field->payload = g_string_new_len(value, -- 2.34.1