[PATCH v2 1/5] lib: string: Fix strlcpy return value

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


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

> strlcpy should always return the number of bytes copied. We were
> accidentally missing the nul-terminator. We also always used to return a
> non-zero value, even if we did not actually copy anything.
> 
> Fixes: 23cd138503 ("Integrate USB gadget layer and USB CDC driver layer")
> 
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>

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/5b008d73/attachment.sig>


More information about the U-Boot mailing list