[PATCH] Implement strlcat [BZ#178]

Florian Weimer fweimer@redhat.com
Fri Dec 11 12:09:00 GMT 2015


On 12/10/2015 11:27 PM, Paul Eggert wrote:

> http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/lib/libc/string/strlcpy.c

> Nothing in this implementation prohibits overlapping the source and
> destination.

This implementation comes with documentation and it says, among other
things:

“If the src and dst strings overlap, the behavior is undefined.”

<http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/lib/libc/string/strlcpy.3>

Florian



More information about the Libc-alpha mailing list