Re: [PATCH 4/5] [v2] blktrace: convert strncpy() to strscpy_pad()

2024-04-10 Thread Justin Stitt
Hi, On Tue, Apr 09, 2024 at 04:00:57PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > gcc-9 warns about a possibly non-terminated string copy: > > kernel/trace/blktrace.c: In function 'do_blk_trace_setup': > kernel/trace/blktrace.c:527:2: error: 'strncpy' specified bound 32 equals > des

[PATCH 4/5] [v2] blktrace: convert strncpy() to strscpy_pad()

2024-04-09 Thread Arnd Bergmann
From: Arnd Bergmann gcc-9 warns about a possibly non-terminated string copy: kernel/trace/blktrace.c: In function 'do_blk_trace_setup': kernel/trace/blktrace.c:527:2: error: 'strncpy' specified bound 32 equals destination size [-Werror=stringop-truncation] Newer versions are fine here because