This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
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
>