From: Jérémie Galarneau Date: Mon, 20 Apr 2015 15:47:02 +0000 (-0400) Subject: Replace g_string_insert_len() by g_string_append_len() X-Git-Tag: v2.0.0-pre1~1267 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=ce6d523094a18838d936cbb5ba0cdf4dddd40313 Replace g_string_insert_len() by g_string_append_len() 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 --- 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,