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]

strcat and config/darwin.c


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.


Attachment: temp.diff
Description: Binary data


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]