diff options
author | Christopher Faylor <me@cgf.cx> | 2008-01-06 18:31:35 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-01-06 18:31:35 +0000 |
commit | eaf70af08a7d71178a15b949613e53bdf1ff539a (patch) | |
tree | dfc262781e263d9b9d26125c776c350caefdee5e | |
parent | 277723722fd1f69cdaa1d660d6c6284b02a646d7 (diff) | |
download | cygnal-eaf70af08a7d71178a15b949613e53bdf1ff539a.tar.gz cygnal-eaf70af08a7d71178a15b949613e53bdf1ff539a.tar.bz2 cygnal-eaf70af08a7d71178a15b949613e53bdf1ff539a.zip |
* include/limits.h (TTY_NAME_MAX): Increase size to same as linux to allow for
(at least) null terminating byte for "/dev/console".
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/include/limits.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 77300ede9..52a10ada7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2008-01-06 Christopher Faylor <me+cygwin@cgf.cx> + + * include/limits.h (TTY_NAME_MAX): Increase size to same as linux to + allow for (at least) null terminating byte for "/dev/console". + 2008-01-01 Christopher Faylor <me+cygwin@cgf.cx> * tty.cc: Update copyright. diff --git a/winsup/cygwin/include/limits.h b/winsup/cygwin/include/limits.h index 6dcf9caa1..7d829db72 100644 --- a/winsup/cygwin/include/limits.h +++ b/winsup/cygwin/include/limits.h @@ -289,7 +289,7 @@ details. */ /* Maximum number of characters in a tty name. */ #undef TTY_NAME_MAX -#define TTY_NAME_MAX 12 +#define TTY_NAME_MAX 32 /* Maximum number of bytes supported for the name of a timezone (not of the TZ variable). Not implemented. */ #undef TZNAME_MAX |