X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fevent.cpp;h=9cef3e9b9189829be10ca8eea0c300ac8be4fb4f;hb=62e6775c1485031cd086d8bc099f19265af44e56;hp=601c6ac1fa5f1d2de8c13790102b97c994ab820c;hpb=97f9ed7d7da933aaf3c25c9a8a7fe12b5b9f8d58;p=lttng-tools.git diff --git a/src/common/event.cpp b/src/common/event.cpp index 601c6ac1f..9cef3e9b9 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -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;