Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Pedro Alves'" <palves@redhat.com>, <gdb-patches@sourceware.org>
Cc: <rustyBSD@gmx.fr>
Subject: RE: [PATCH] Fix readlink calls in GDB
Date: Mon, 26 Nov 2012 14:43:00 -0000	[thread overview]
Message-ID: <004401cdcbe4$524136c0$f6c3a440$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <20121126142036.10142.97678.stgit@brno.lan>



> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Pedro Alves
> Envoyé : lundi 26 novembre 2012 15:21
> À : gdb-patches@sourceware.org
> Cc : rustyBSD@gmx.fr
> Objet : [PATCH] Fix readlink calls in GDB
> 
> This is largely based on a patch Maxime sent me, to fix readlink calls
> in GDB.
> 
> Several readlink calls in gdb are wrong.  readlink doesn't append the
> terminating nul, so if we're going to need to do that, we need to pass
> 'sizeof (buf) - 1' as buffer size.

  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?

  Because most arguments are used a 'char *'
and thus the terminating zero is required, no?


Pierre Muller


  reply	other threads:[~2012-11-26 14:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-26 14:20 Pedro Alves
2012-11-26 14:43 ` Pierre Muller [this message]
2012-11-26 15:16   ` Pedro Alves
2012-11-26 15:31     ` Pierre Muller
2012-11-26 16:12       ` Pedro Alves
2012-11-26 16:33         ` Pierre Muller
2012-11-26 16:54           ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004401cdcbe4$524136c0$f6c3a440$@muller@ics-cnrs.unistra.fr' \
    --to=pierre.muller@ics-cnrs.unistra.fr \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=rustyBSD@gmx.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox