commit | 9297a7f963742aa1d4aae9818b46fa64325aa77b | [log] [tgz] |
---|---|---|
author | Sean Anderson <seanga2@gmail.com> | Thu Mar 11 00:15:42 2021 -0500 |
committer | Tom Rini <trini@konsulko.com> | Mon Apr 12 17:44:55 2021 -0400 |
tree | e37d12c248da4ec31b1569e1973598b924bb818b | |
parent | 2f51257b176306f62a73b1ba0c4cd1663ba33152 [diff] |
lib: string: Implement strlcat 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@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>