http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50277
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-09-02 16:58:48 UTC --- Well that is the portable version of strndup, GCC uses it only once but it is only will ever be called with a string which has a null char. Also strnlen is not portable either.