X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fkernel-ctl.c;h=419d1af7b3fa1b129689ce89fd2e0cc6ee3e5078;hp=407dd580448c18d61cd0c9a2a168589fc6fb5a14;hb=99497cd03fb27fd2416a88d80292a0cc5647bff2;hpb=773168b7255d45fd28f018055292e93b7a76482d diff --git a/ltt-sessiond/kernel-ctl.c b/ltt-sessiond/kernel-ctl.c index 407dd5804..419d1af7b 100644 --- a/ltt-sessiond/kernel-ctl.c +++ b/ltt-sessiond/kernel-ctl.c @@ -609,7 +609,8 @@ ssize_t kernel_list_events(int tracer_fd, struct lttng_event **events) goto error; } } - strncpy(elist[count].name, event, strlen(event)); + strncpy(elist[count].name, event, LTTNG_SYMBOL_NAME_LEN); + elist[count].name[LTTNG_SYMBOL_NAME_LEN - 1] = '\0'; count++; }