This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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] Fix readlink calls in GDB


On 11/26/2012 02:42 PM, Pierre Muller wrote:

>   Just a question:
> your change doesn't seem to add the terminating '\0'
> in all the calls concerned, is this because it concerns specific 
> native files for operating systems that already append the '\0' at the end?

No.  That must be done in all operating systems.  If you look at the code
that surrounds the lines touched by the patch, you'll find the preexisting
code doing that.


-- 
Pedro Alves


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