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;