Re: [PATCH net-next v1] NFC: s3fwrn5: Replace strcpy() with strscpy()
From: Krzysztof Kozlowski
Date: Sun Mar 01 2026 - 11:44:55 EST
On 01/03/2026 15:32, tomasz.unger@xxxxxxxx wrote:
> From: Tomasz Unger <tomasz.unger@xxxxxxxx>
>
> Replace strcpy() with strscpy() which limits the copy to the size of
> the destination buffer. Since fw_info->fw_name is an array, the
"an array with a fixed, declared size"
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
See similar comment here:
https://lore.kernel.org/all/8e68e02a-2c58-485c-a13e-a4b52616e63e@xxxxxxxxxx/
Best regards,
Krzysztof