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, 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


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