#include <string.h>
#include <unistd.h>
-#include "liblttsessiondcomm.h"
+#include <lttng-sessiond-comm.h>
#include "lttngerr.h"
#include "ust-ctl.h"
if (session->kern_session_count > 0) {
trace.type = KERNEL;
- strncpy(trace.name, "kernel", 6);
+ strncpy(trace.name, "kernel", sizeof(trace.name));
+ trace.name[sizeof(trace.name) - 1] = '\0';
memcpy(&traces[i], &trace, sizeof(trace));
}
}