Messages in this thread | | | Date | Wed, 14 Feb 2024 12:52:10 -0300 | Subject | Re: [PATCH 4/4] selftests/nolibc: Add tests for strlcat() and strlcpy() | From | Rodrigo Campos <> |
| |
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.
| |