[PATCH v2 2/5] lib: string: Implement strlcat

Tom Rini trini at konsulko.com
Tue Apr 13 16:28:55 CEST 2021


On Thu, Mar 11, 2021 at 12:15:42AM -0500, Sean Anderson wrote:

> This introduces strlcat, which provides a safer interface than strncat. It
> never copies more than its size bytes, including the terminating nul. In
> addition, it never reads past dest[size - 1], even if dest is not
> nul-terminated.
> 
> This also removes the stub for dwc3 now that we have a proper
> implementation.
> 
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210413/99e7e408/attachment.sig>


More information about the U-Boot mailing list