* 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:
Corinna Vinschen
2007-11-28 16:45:34 +00:00
parent 023a2fa789
commit d8a5f04695
5 changed files with 15 additions and 5 deletions

View File

@@ -1300,7 +1300,7 @@ fhandler_pty_master::ioctl (unsigned int cmd, void *arg)
char *
fhandler_pty_master::ptsname ()
{
static char buf[32];
static char buf[TTY_NAME_MAX];
__small_sprintf (buf, "/dev/tty%d", get_unit ());
return buf;