Fix: event notifier: adapt read iterator state to poll expectations
[lttng-modules.git] / src / lttng-syscalls.c
index 9a72245cc705a7f79f1f1c709a3ed71808cdd9f9..0528404063f8e2b123ca6b632f5b100fa1a2cf4f 100644 (file)
@@ -721,7 +721,7 @@ int fill_table(const struct trace_syscall_entry *table, size_t table_len,
                        ev.u.syscall.abi = LTTNG_KERNEL_SYSCALL_ABI_COMPAT;
                        break;
                }
-               strncpy(ev.name, desc->name, LTTNG_KERNEL_SYM_NAME_LEN);
+               strncpy(ev.name, desc->name, LTTNG_KERNEL_SYM_NAME_LEN - 1);
                ev.name[LTTNG_KERNEL_SYM_NAME_LEN - 1] = '\0';
                ev.instrumentation = LTTNG_KERNEL_SYSCALL;
                chan_table[i] = _lttng_event_create(chan, &ev, filter,
This page took 0.023104 seconds and 4 git commands to generate.