From: Jérémie Galarneau Date: Wed, 16 Mar 2022 20:35:30 +0000 (-0400) Subject: Clean-up: exclusions: use LTTNG_EVENT_EXCLUSION_NAME_AT util X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=73b3df7113d5247157c240a16e66727cbb296d5c Clean-up: exclusions: use LTTNG_EVENT_EXCLUSION_NAME_AT util Signed-off-by: Jérémie Galarneau Change-Id: I59da48be1a2d905d3a7ff485d353fdacddda784d --- diff --git a/src/common/event-rule/user-tracepoint.cpp b/src/common/event-rule/user-tracepoint.cpp index cc76d229d..d6d166685 100644 --- a/src/common/event-rule/user-tracepoint.cpp +++ b/src/common/event-rule/user-tracepoint.cpp @@ -380,8 +380,10 @@ lttng_event_rule_user_tracepoint_generate_exclusions( rule, i, &exclusion_str); LTTNG_ASSERT(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK); - copy_ret = lttng_strncpy(exclusions->names[i], exclusion_str, - sizeof(exclusions->names[i])); + copy_ret = lttng_strncpy( + LTTNG_EVENT_EXCLUSION_NAME_AT(exclusions, i), + exclusion_str, + sizeof(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusions, i))); if (copy_ret) { free(exclusions); exclusions = NULL;