diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-02-20 04:49:43 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-02-20 04:49:43 +0100 |
commit | 83fe26e0287277ce7d5ac4738ce7170420484c1a (patch) | |
tree | 5b2ba0e640835c92ea69ec8f00d3bc5c86a9d146 /sysdeps/unix/bsd | |
parent | 0234227d25807a330c27d549b9c17956a2f3fe35 (diff) |
Fix pty path in chroot
when e.g. using a chroot, the pty path is not so short.
Diffstat (limited to 'sysdeps/unix/bsd')
-rw-r--r-- | sysdeps/unix/bsd/unlockpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/bsd/unlockpt.c b/sysdeps/unix/bsd/unlockpt.c index 59fc7392e3..4c3dc5b9bc 100644 --- a/sysdeps/unix/bsd/unlockpt.c +++ b/sysdeps/unix/bsd/unlockpt.c @@ -28,7 +28,7 @@ int unlockpt (int fd) { - char buf[sizeof (_PATH_TTY) + 2]; + char buf[1024]; /* XXX */ /* BSD doesn't have a lock, but it does have `revoke'. */ if (__ptsname_r (fd, buf, sizeof (buf))) |