Re: [PATCH] cpufreq: refactor deprecated strncpy

2023-09-29 Thread Kees Cook
On Wed, 13 Sep 2023 00:07:21 +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > Both `policy->last_governor` and `default_governor` are expected to be > NUL-terminated w

Re: [PATCH] cpufreq: refactor deprecated strncpy

2023-09-27 Thread Viresh Kumar
On 13-09-23, 00:07, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > Both `policy->last_governor` and `default_governor` are expected to be > NUL-terminated which is shown by