From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 13 Apr 2021 10:28:55 -0400 Subject: [PATCH v2 2/5] lib: string: Implement strlcat In-Reply-To: <20210311051545.1886333-3-seanga2@gmail.com> References: <20210311051545.1886333-1-seanga2@gmail.com> <20210311051545.1886333-3-seanga2@gmail.com> Message-ID: <20210413142855.GC1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Simon Glass 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: