* 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.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user