This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: strcpy -> memcpy


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


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