https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67610
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|cp-tools |c Version|unspecified |4.2.1 Resolution|--- |INVALID Product|classpath |gcc --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Strcpy has undefined behavior if the input and output arrays overlap. Use memmove instead. Also this would not be a gcc bug as gcc does provide strcpy.