[PATCH] Re: strcat and config/darwin.c
Andrew Pinski
pinskia@physics.uc.edu
Mon Feb 3 06:32:00 GMT 2003
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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: darwin.str.diff
Type: application/octet-stream
Size: 2563 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030203/fe219a8b/attachment.obj>
-------------- next part --------------
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
>
More information about the Gcc
mailing list