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: DJ Delorie <dj at delorie dot com>
- Cc: <ac131313 at cygnus dot com>, <amodra at bigpond dot net dot au>, <binutils at sources dot redhat dot com>
- Date: Tue, 25 Jun 2002 14:00:18 -0400 (EDT)
- Subject: Re: strcpy -> memcpy
On Tue, 25 Jun 2002, DJ Delorie wrote:
I wrote:
> > No x* calls are allowed in bfd (just bfd; and yes existing calls
> > are bugs).
>
> Libiberty guarantees the availability of strdup(), which returns NULL
> on allocation failure. BFD should be allowed to use that.
>
> Now, if you want to optimize libiberty's strdup, that's a different
> story... ;)
I made no statement about strdup. I was talking about xstrdup
xmalloc xcalloc xrealloc and whatever other similar x* there
might be. Maybe I wasn't clear enough.
brgds, H-P