strcpy -> memcpy

Hans-Peter Nilsson hp@bitrange.com
Tue Jun 25 10:05:00 GMT 2002


On Tue, 25 Jun 2002, Andrew Cagney wrote:
> Why not just use [x]strdup()?

(For the audience, I think Andrew Cagney actually knew this:)
No x* calls are allowed in bfd (just bfd; and yes existing calls
are bugs).  xstrdup et al aborts on memory failures, and bfd
isn't allowed to do that; it should return an error to its
caller.

brgds, H-P



More information about the Binutils mailing list