Re: [PATCH 4/4] selftests/nolibc: Add tests for strlcat() and strlcpy()

From: Rodrigo Campos
Date: Wed Feb 14 2024 - 10:52:24 EST

On 1/29/24 15:15, Rodrigo Campos wrote:
+ /* For functions that take a long buffer, like strlcat() */
+ char buf[7] = "foo";

I've improved this to not be the same length as the other buffer (we can't catch mistakes like confusing the src and dst buffers like that) and added some trailing chars, so we also test that the \0 is added at the exactly right position.