Remove "lib" prefix from .c/.h file names
[lttng-tools.git] / ltt-sessiond / kernel-ctl.c
index 407dd580448c18d61cd0c9a2a168589fc6fb5a14..cfea8942da7f421d4eeaf272f59b51261fe08e3e 100644 (file)
@@ -25,7 +25,7 @@
 #include <unistd.h>
 
 #include "lttngerr.h"
-#include "libkernelctl.h"
+#include "kernelctl.h"
 #include "kernel-ctl.h"
 
 /*
@@ -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++;
        }
 
This page took 0.022886 seconds and 4 git commands to generate.