Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-11-28 19:45:34 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-11-28 19:45:34 +0300
commitd8a5f0469569be846a7292b2ec591c49031ead40 (patch)
tree8d1cc6712f40ee20e70f5ecb4812fa9918aa0554 /winsup/cygwin/libc
parent023a2fa789b7700ed32f8d78655c03b4b273d42b (diff)
* fhandler_tape.cc (mtinfo::initialize): Use MAX_PATH instead of
CYG_MAX_PATH. * fhandler_tty.cc (fhandler_pty_master::ptsname): Set buffer size to TTY_NAME_MAX. * syscalls.cc (ttyname): Eliminate the `+ 1' from the name buffer size since TTY_NAME_MAX already counts the trailing NUL. * libc/bsdlib.cc (openpty): Set pts buffer size to TTY_NAME_MAX.
Diffstat (limited to 'winsup/cygwin/libc')
-rw-r--r--winsup/cygwin/libc/bsdlib.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/libc/bsdlib.cc b/winsup/cygwin/libc/bsdlib.cc
index 6a007466f..b61c7aaaf 100644
--- a/winsup/cygwin/libc/bsdlib.cc
+++ b/winsup/cygwin/libc/bsdlib.cc
@@ -108,7 +108,7 @@ openpty (int *amaster, int *aslave, char *name, struct termios *termp,
struct winsize *winp)
{
int master, slave;
- char pts[CYG_MAX_PATH];
+ char pts[TTY_NAME_MAX];
if ((master = open ("/dev/ptmx", O_RDWR | O_NOCTTY)) >= 0)
{