[PATCH] Implement strlcat [BZ#178]
Paul Eggert
eggert@cs.ucla.edu
Fri Dec 4 16:07:00 GMT 2015
On 12/04/2015 03:12 AM, Florian Weimer wrote:
>> There is no "_exactly_". The BSDs differ.
> I think the behavior is the same.
No, as I mentioned elsewhere, the NetBSD iimplementation does not allow
strlcpy(0, SRC, 0) whereas the FreeBSD implementation does (and this
disagrees with the FreeBSD documentation where it says the destination
must be a string). I haven't investigated strlcpy but I expect that it
differs too.
It is a bit of a mess.
It's certainly OK to reach out to the OpenBSD and FreeBSD and NetBSD
folks here, in particular as to whether applications rely on these weird
corner cases. I am pretty sure they do not, and that it'd be better to
make them errors.
More information about the Libc-alpha
mailing list