Reported by the lttng-ust-java-tests_master_build CI job.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I47b048c65a9855347c9b02fe44d9fdbae7e06dbf
}
/* Include the null terminator. */
- comm.provider_name_len = provider_len + 1;
+ provider_len += 1;
+ comm.provider_name_len = provider_len;
ctx_len = strlen(ctx_name);
if (ctx_len == 0) {
}
/* Include the null terminator. */
- comm.ctx_name_len = ctx_len + 1;
+ ctx_len += 1;
+ comm.ctx_name_len = ctx_len;
/* Header */
ret = lttng_dynamic_buffer_append(&payload->buffer, &comm,