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]

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


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.

Attachment: temp.diff
Description: Binary data


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

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