Re: [PATCH] tracing: Replace strncpy() with strscpy() when copying comm

2024-08-27 Thread Justin Stitt
Hi, On Wed, Jul 31, 2024 at 03:50:58PM GMT, Jinjie Ruan wrote: > Replace the depreciated[1] strncpy() calls with strscpy() > when copying comm. > > Link: https://github.com/KSPP/linux/issues/90 [1] > Signed-off-by: Jinjie Ruan Reviewed-by: Justin Stitt > --- > kernel/trace/trace.c

[PATCH] tracing: Replace strncpy() with strscpy() when copying comm

2024-07-31 Thread Jinjie Ruan
Replace the depreciated[1] strncpy() calls with strscpy() when copying comm. Link: https://github.com/KSPP/linux/issues/90 [1] Signed-off-by: Jinjie Ruan --- kernel/trace/trace.c | 2 +- kernel/trace/trace_events_hist.c | 4 ++-- kernel/trace/trace_sched_switch.c | 2 +- 3 files ch