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

2021-04-13 Thread Tom Rini
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-terminate

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

2021-03-24 Thread Simon Glass
On Thu, 11 Mar 2021 at 18:15, 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. > > Thi

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

2021-03-10 Thread Sean Anderson
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 implem