Re: [PATCH] string: use strnlen in strlcat
From: Andy Shevchenko
Date: Fri May 01 2026 - 04:56:21 EST
On Thu, Apr 30, 2026 at 11:53 PM Thorsten Blum <thorsten.blum@xxxxxxxxx> wrote:
>
> Use strnlen() to limit the destination scan to the provided buffer size.
> Remove the redundant comment.
Please, do not spend time on amending strlcat(). This function must
die. Instead, convert current users to use alternative ways.
--
With Best Regards,
Andy Shevchenko