summaryrefslogtreecommitdiff
path: root/test/lib/strlcat.c
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2021-03-11 08:15:42 +0300
committerTom Rini <trini@konsulko.com>2021-04-13 00:44:55 +0300
commit9af869c4145a668b6db9accdea554eb57895a25e (patch)
treee37d12c248da4ec31b1569e1973598b924bb818b /test/lib/strlcat.c
parentd3358ecc54be0bc3b4dd11f7a63eab0a2842f772 (diff)
downloadu-boot-9af869c4145a668b6db9accdea554eb57895a25e.tar.xz
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>
Diffstat (limited to 'test/lib/strlcat.c')
0 files changed, 0 insertions, 0 deletions