summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-13 01:48:25 +0000
committerRoland McGrath <roland@gnu.org>2002-05-13 01:48:25 +0000
commitab7dd85bfbe9a176c2d5055d52185ae6364f97af (patch)
tree6eef4baa61b163061ab60a0ade089984225524c3 /hurd
parent6f1428364a9ef5994087288c21fa4c9222c5fef2 (diff)
downloadglibc-ab7dd85bfbe9a176c2d5055d52185ae6364f97af.tar.gz
2002-05-13 Marcus Brinkmann <marcus@gnu.org>
* hurd/hurdchdir.c (_hurd_change_directory_port_from_name): Allocate three, not two, more than LEN when appending '/.'. * sysdeps/mach/hurd/chroot.c (chroot): Likewise. Don't check if NAME ends with '/.' if it is shorter than 2 chars. * mach/Makefile ($(mach-syscalls:%=$(objpfx)%.S)): Make the generated files #include <sysdep.h> instead of <mach/machine/syscall_sw.h>.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurdchdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/hurdchdir.c b/hurd/hurdchdir.c
index 0c10a37d1b..5115e4d460 100644
--- a/hurd/hurdchdir.c
+++ b/hurd/hurdchdir.c
@@ -40,7 +40,7 @@ _hurd_change_directory_port_from_name (struct hurd_port *portcell,
lookup = name;
else
{
- char *n = alloca (len + 2);
+ char *n = alloca (len + 3);
memcpy (n, name, len);
n[len] = '/';
n[len + 1] = '.';