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: GCC build failed for native with your patch on 2003-10-06T06:15:01Z.


Falk Hueffner <falk.hueffner@student.uni-tuebingen.de> writes:

> Geoff Keating <geoffk@geoffk.org> writes:
> 
> > This is OK, but the coding conventions say you should write it as
> > 
> > memcpy (buffer + bufferlen + 1, "$stub\"", strlen("$stub\"") + 1);
> 
> Maybe I'm missing something, but why not just write
> 
> strcpy (buffer + bufferlen + 1, "$stub\"");

That would probably be better, yes.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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