X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fir%2Fevent-fields.c;h=f524d5dbb8ce2fef86b935a5d4e69226e4c1999d;hb=70996764ff14d6f6d0710a8a45e23a907a0900f9;hp=c80c12fe0c02119020e656a32eaf6b6b2fcb7c94;hpb=f98c6554b0e1dd37e0f992f7b5e67c4431f911a6;p=babeltrace.git diff --git a/formats/ctf/ir/event-fields.c b/formats/ctf/ir/event-fields.c index c80c12fe..f524d5db 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, @@ -1073,6 +1073,7 @@ struct bt_ctf_field *bt_ctf_field_copy(struct bt_ctf_field *field) goto end; } + copy->payload_set = field->payload_set; ret = field_copy_funcs[type_id](field, copy); if (ret) { bt_ctf_field_put(copy);