Messages in this thread | | | Subject | Re: [PATCH net 2/2] liquidio: Simplify octeon_download_firmware() | From | Paolo Abeni <> | Date | Tue, 24 Oct 2023 13:11:13 +0200 |
| |
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@wanadoo.fr> > --- > 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
| |