Clean-up: exclusions: use LTTNG_EVENT_EXCLUSION_NAME_AT util
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Mar 2022 20:35:30 +0000 (16:35 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Mar 2022 20:35:30 +0000 (16:35 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I59da48be1a2d905d3a7ff485d353fdacddda784d

src/common/event-rule/user-tracepoint.cpp

index cc76d229dba4872eb92409e468fd7e054d1e890f..d6d166685421e08affd1222c884679c2dd164b53 100644 (file)
@@ -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;
This page took 0.043953 seconds and 4 git commands to generate.