Replace g_string_insert_len() by g_string_append_len()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Apr 2015 15:47:02 +0000 (11:47 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Apr 2015 15:49:02 +0000 (11:49 -0400)
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 <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-fields.c

index c80c12fe0c02119020e656a32eaf6b6b2fcb7c94..80a6655b50f81c40fea196831a55b1d9d463a127 100644 (file)
@@ -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,
This page took 0.025763 seconds and 4 git commands to generate.