Re: [PATCH] mwifiex: replace deprecated strcpy() with strscpy()
From: jeff . chen_1
Date: Mon Jul 07 2025 - 03:25:41 EST
On Sat, Jul 05, 2025 at 03:36:00 PM +0200, Miguel García wrote:
> strcpy() is deprecated for NUL-terminated strings because it may overflow
> the destination buffer and does not guarantee termination. strscpy()
> avoids these issues.
>
> adapter->fw_name is a fixed-size char array (64 bytes). All source
> strings copied here are bounded literals or validated inputs, so no
> return-value handling is required.
>
> Signed-off-by: Miguel García <miguelgarciaroman8@xxxxxxxxx>
Reviewed-by: Jeff Chen <jeff.chen_1@xxxxxxx>