[PATCH] Re: strcat and config/darwin.c

Andrew Pinski pinskia@physics.uc.edu
Sun Feb 2 22:49:00 GMT 2003


Here is an updated with the suggestion from Richard Henderson by it 
using memcpy instead of strcpy:

2003-02-02  Andrew Pinski  <pinskia@physics.uc.edu>

	* config/darwin.c: (machopic_non_lazy_ptr_name): Change strcat to 
memcpy with length added.
	(machopic_stub_name): Likewise. (machopic_classify_ident): Change 
strcpy to memcpy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp.diff
Type: application/octet-stream
Size: 2557 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030202/43cb5bd1/attachment.obj>
-------------- next part --------------


Thanks,
Andrew Pinski
apinski@apple.com
pinskia@physics.uc.edu




On Sunday, Jan 26, 2003, at 04:50 US/Pacific, 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.
>
>
> 2003-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
>
> 	* config/darwin.c: (machopic_non_lazy_ptr_name): Change strcat to 
> strcpy with length added.
> 	(machopic_stub_name): Likewise.
>
>
> <temp.diff>
>
> Thanks,
> Andrew Pinski
> apinski@apple.com
> pinskia@physics.uc.edu


More information about the Gcc mailing list