Re: [PATCH] Replace strncpy with strscpy to ensure null-termination
From: Len Brown
Date: Sun Jun 08 2025 - 10:59:22 EST
On Sun, Mar 23, 2025 at 10:31 AM kendrajmoore
<kendra.j.moore3443@xxxxxxxxx> wrote:
> --- a/tools/power/x86/turbostat/turbostat.c
> + strscpy(pcounter->name, name, ARRAY_SIZE(pcounter->name));
Nope -- strscpy() is kernel specific, not available to user space utilities.
Len Brown, Intel Open Source Technology Center