This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: charset __FUNCTION__ patch


On Fri, May 28, 2004 at 11:58:20PM +0200, Andreas Schwab wrote:
> Zack Weinberg <zack@codesourcery.com> writes:
> 
> >> !       namep = (char *) xcalloc (strlen (name) + 1, sizeof (char));
> >> !       strcpy (namep, name);
> >
> >           namep = strdup (name);
> 
> Shouldn't that be xstrdup?
> 
> Andreas.

Yes.  It was fixed on the version I committed.


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