X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Fagent.hpp;fp=src%2Fcommon%2Fsessiond-comm%2Fagent.hpp;h=65d379ec06cde75c6d39545e743572c0a7a0c375;hp=9fcb1f34956be67f4a5329e4a8c5cd9d2158a10f;hb=40ebe2193c00a3b67294ad38b47537cdd68b0e82;hpb=45cc2527c1b679884570130eca8f285b2a9a8406 diff --git a/src/common/sessiond-comm/agent.hpp b/src/common/sessiond-comm/agent.hpp index 9fcb1f349..65d379ec0 100644 --- a/src/common/sessiond-comm/agent.hpp +++ b/src/common/sessiond-comm/agent.hpp @@ -11,6 +11,7 @@ #include +#include #include #include @@ -87,7 +88,7 @@ struct lttcomm_agent_list_reply_hdr { struct lttcomm_agent_list_reply { uint32_t nb_event; /* List of event name each of them ending by a NULL byte. */ - char payload[]; + char payload[LTTNG_FLEXIBLE_ARRAY_MEMBER_LENGTH]; } LTTNG_PACKED; #endif /* AGENT_COMM */