Clean-up: use sizeof instead of repeating string length constant
[lttng-tools.git] / src / common / event-rule / user-tracepoint.cpp
index 5158eeaa072c992a57aa777e4ee8fe0552ea40b5..cc76d229dba4872eb92409e468fd7e054d1e890f 100644 (file)
@@ -381,7 +381,7 @@ lttng_event_rule_user_tracepoint_generate_exclusions(
                LTTNG_ASSERT(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK);
 
                copy_ret = lttng_strncpy(exclusions->names[i], exclusion_str,
-                               LTTNG_SYMBOL_NAME_LEN);
+                               sizeof(exclusions->names[i]));
                if (copy_ret) {
                        free(exclusions);
                        exclusions = NULL;
This page took 0.024059 seconds and 4 git commands to generate.