Re: [PATCH v2] power: supply: surface_battery: replace deprecated strncpy with strscpy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 20 Oct 2023 19:39:02 +0000, Justin Stitt wrote:
> strncpy() is deprecated for use on NUL-terminated destination strings
> [1] and as such we should prefer more robust and less ambiguous string
> interfaces.
> 
> We expect bat->name to be NUL-terminated based on its usage with
> strcmp():
> 
> [...]

Applied, thanks!

[1/1] power: supply: surface_battery: replace deprecated strncpy with strscpy
      commit: 81f07d2b0c4db3b6e53d90419db915c75beb6326

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux