This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Implement strlcpy [BZ #178]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]