This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: strcpy -> memcpy
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: Alan Modra <amodra at bigpond dot net dot au>, <binutils at sources dot redhat dot com>
- Date: Tue, 25 Jun 2002 13:05:20 -0400 (EDT)
- Subject: 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