This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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][GOLD] Add ARM relocation property table.


Co

2010/2/2 Ian Lance Taylor <iant@google.com>:

>> + ?// strtok needs a non-const string pointer.
>> + ?char* buffer = new char[s.size() + 1];
>> + ?strcpy(buffer, s.c_str());
>
> Write memcpy(buffer, s.data(), s.size());

Patch committed with this change but I also added code to add a
null-character at the end of buffer.

Thanks.

-Doug

>
> This is OK with that change.
>
> Thanks.
>
> Ian
>


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