Fix: sessiond: event name length check is too strict
[lttng-tools.git] / src / bin / lttng-sessiond / ust-app.cpp
index 44db0accdd50b240e89152e52e0e1f7d2dc2348d..1ae2bbac3e0c278b38b961aec677b98726907103 100644 (file)
@@ -2149,7 +2149,7 @@ static int init_ust_event_notifier_from_event_rule(
 
        event_notifier->event.instrumentation = LTTNG_UST_ABI_TRACEPOINT;
        ret = lttng_strncpy(event_notifier->event.name, pattern,
-                       LTTNG_UST_ABI_SYM_NAME_LEN - 1);
+                       sizeof(event_notifier->event.name));
        if (ret) {
                ERR("Failed to copy event rule pattern to notifier: pattern = '%s' ",
                                pattern);
This page took 0.023265 seconds and 4 git commands to generate.