diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-11-28 16:45:34 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-11-28 16:45:34 +0000 |
commit | d8a5f0469569be846a7292b2ec591c49031ead40 (patch) | |
tree | 8d1cc6712f40ee20e70f5ecb4812fa9918aa0554 /winsup/cygwin/fhandler_tape.cc | |
parent | 023a2fa789b7700ed32f8d78655c03b4b273d42b (diff) | |
download | newlib-d8a5f0469569be846a7292b2ec591c49031ead40.zip newlib-d8a5f0469569be846a7292b2ec591c49031ead40.tar.gz newlib-d8a5f0469569be846a7292b2ec591c49031ead40.tar.bz2 |
* 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/fhandler_tape.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tape.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc index 0364076..565aaa7 100644 --- a/winsup/cygwin/fhandler_tape.cc +++ b/winsup/cygwin/fhandler_tape.cc @@ -1130,7 +1130,7 @@ mtinfo_drive::ioctl (HANDLE mt, unsigned int cmd, void *buf) void mtinfo::initialize () { - char name[CYG_MAX_PATH]; + char name[MAX_PATH]; HANDLE mtx; shared_name (name, "mtinfo_mutex", 0); |