diff options
author | Pedro Alves <palves@redhat.com> | 2012-11-26 14:19:31 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-11-26 14:19:31 +0000 |
commit | 54625e3a2ad2f8120edab2c4b35519c3fe448fe6 (patch) | |
tree | 318ceb93f282931d0a5f468d5038515c58b6a87f /gdb/inf-child.c | |
parent | 210b2c6cf73a2e2ec2987dbbef629e97306578b5 (diff) | |
download | gdb-54625e3a2ad2f8120edab2c4b35519c3fe448fe6.tar.gz |
gdb/
2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
Pedro Alves <palves@redhat.com>
* common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
size parameter passed to readlink by one byte.
* fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
* linux-nat.c (linux_child_pid_to_exec_file): Ditto.
* nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
* inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
size by one byte.
gdb/gdbserver/
2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
* hostio.c (handle_readlink): Decrease buffer size
parameter passed to readlink by one byte.
Diffstat (limited to 'gdb/inf-child.c')
-rw-r--r-- | gdb/inf-child.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inf-child.c b/gdb/inf-child.c index ae2dd1e1012..3530e75768e 100644 --- a/gdb/inf-child.c +++ b/gdb/inf-child.c @@ -346,7 +346,7 @@ inf_child_fileio_readlink (const char *filename, int *target_errno) /* We support readlink only on systems that also provide a compile-time maximum path length (MAXPATHLEN), at least for now. */ #if defined (HAVE_READLINK) && defined (MAXPATHLEN) - char buf[MAXPATHLEN]; + char buf[MAXPATHLEN - 1]; int len; char *ret; |