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


Aldy Hernandez <aldyh@redhat.com> writes:

> Testing finished.  There were a few tid-bits (warnings) I got wrong--
> no change to functionality.  Fixed in this patch.  No regressions.

Approved with two minor adjustments:

> !       namep = (char *) xcalloc (len, sizeof (char));

          namep = xmalloc (len);

> !       namep = (char *) xcalloc (strlen (name) + 1, sizeof (char));
> !       strcpy (namep, name);

          namep = strdup (name);

zw


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