Clean-up: sessiond-comm: out of bounds access warning
[lttng-tools.git] / src / common / event.cpp
index 601c6ac1fa5f1d2de8c13790102b97c994ab820c..9cef3e9b9189829be10ca8eea0c300ac8be4fb4f 100644 (file)
@@ -319,8 +319,8 @@ static ssize_t lttng_event_exclusions_create_from_payload(
                        goto end;
                }
 
-               ret = lttng_strncpy(local_exclusions->names[i], string,
-                               sizeof(local_exclusions->names[i]));
+               ret = lttng_strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(local_exclusions, i), string,
+                               sizeof(LTTNG_EVENT_EXCLUSION_NAME_AT(local_exclusions, i)));
                if (ret) {
                        ret = -1;
                        goto end;
This page took 0.023943 seconds and 4 git commands to generate.