This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix readlink calls in GDB
- From: Pedro Alves <palves at redhat dot com>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: gdb-patches at sourceware dot org, rustyBSD at gmx dot fr
- Date: Mon, 26 Nov 2012 15:15:28 +0000
- Subject: Re: [PATCH] Fix readlink calls in GDB
- References: <20121126142036.10142.97678.stgit@brno.lan> <004401cdcbe4$524136c0$f6c3a440$@muller@ics-cnrs.unistra.fr>
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