summaryrefslogtreecommitdiffstats
path: root/kernel/include/trace/events/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/trace/events/task.h')
-rw-r--r--kernel/include/trace/events/task.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/include/trace/events/task.h b/kernel/include/trace/events/task.h
index dee3bb1d5..2cca6cd34 100644
--- a/kernel/include/trace/events/task.h
+++ b/kernel/include/trace/events/task.h
@@ -46,7 +46,7 @@ TRACE_EVENT(task_rename,
TP_fast_assign(
__entry->pid = task->pid;
memcpy(entry->oldcomm, task->comm, TASK_COMM_LEN);
- memcpy(entry->newcomm, comm, TASK_COMM_LEN);
+ strlcpy(entry->newcomm, comm, TASK_COMM_LEN);
__entry->oom_score_adj = task->signal->oom_score_adj;
),