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: [PATCH] Re: strcat and config/darwin.c


I messed up the patch, in machopic_classify_ident, I forgot to add one to the length to copy the null character.


Here is an updated patch:

Attachment: darwin.str.diff
Description: Binary data



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


On Sunday, Feb 2, 2003, at 14:49 US/Pacific, Andrew Pinski wrote:

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.
<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]