This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: strcat and config/darwin.c
- From: Richard Henderson <rth at redhat dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org, apinski at apple dot com
- Date: Mon, 27 Jan 2003 23:11:34 -0800
- Subject: Re: strcat and config/darwin.c
- References: <CC5F3713-312C-11D7-AE5B-000393A6D2F2@physics.uc.edu>
On Sun, Jan 26, 2003 at 04:50:50AM -0800, Andrew Pinski wrote:
> In config/darwin.c, there are places which strcat is used even though
> it is easy and faster to find where the end of the string is, here is
> a patch to change all the strcats to strcpy.
It's also possible to use memcpy here as well. The length
of the string is still available from the call to alloca.
r~