This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] Implement strlcpy [BZ #178]
- From: Florian Weimer <fweimer at redhat dot com>
- To: Paul Eggert <eggert at cs dot ucla dot edu>, "libc-al >> GNU C Library" <libc-alpha at sourceware dot org>
- Date: Mon, 15 Sep 2014 18:36:34 +0200
- Subject: Re: [PATCH] Implement strlcpy [BZ #178]
- Authentication-results: sourceware.org; auth=none
- References: <5416EDEA dot 4080903 at redhat dot com> <54170B62 dot 90900 at cs dot ucla dot edu>
On 09/15/2014 05:53 PM, Paul Eggert wrote:
It would not be a good idea to add this to glibc, not only because this
implementation would be incompatible with OpenBSD's, but more generally
because the interface is poorly designed.
How is it incompatible with the OpenBSD implementation?
It's *particularly* not a good idea to add propaganda to the manual,
with phrases calling strlcpy "more useful". I mean, c'mon.
The original documentation for strncpy already called it ârarely
usefulâ, otherwise I wouldn't have used this phrasing.
Florian Weimer / Red Hat Product Security