Using strlcpy if target OS allows it
Marc Espie
espie@nerim.net
Thu Apr 21 00:31:00 GMT 2005
On Wed, Apr 20, 2005 at 06:18:31PM -0500, Aaron W. LaFramboise wrote:
> Marc Espie wrote:
>
> > The linker now warns about uses of strcpy, which means that the whole
> > libstdc++ testsuite fails on OpenBSD now.
>
> If you're just trying to fix the testsuite failures, perhaps you could
> use the gcc-dg-prune callback to ignore this warning?
>
As far as the testsuite goes, yep.
In general, having the library warn is a major annoyance...
well, it's fixed on my box now by sprinkling strlcpy all over the place,
but having yet another patch to maintain internally is stuff I could live
without...
More information about the Libstdc++
mailing list