Re: [PATCH net 2/2] liquidio: Simplify octeon_download_firmware()

From: Paolo Abeni
Date: Tue Oct 24 2023 - 07:12:05 EST


On Sun, 2023-10-22 at 22:59 +0200, Christophe JAILLET wrote:
> In order to remove the usage of strncat(), write directly at the rigth
> place in the 'h->bootcmd' array and check if the output is truncated.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---
> The goal is to potentially remove the strncat() function from the kernel.
> Their are only few users and most of them use it wrongly.
>
> This patch is compile tested only.

Then just switch to strlcat, would be less invasive.

Thanks,

Paolo