From eaf70af08a7d71178a15b949613e53bdf1ff539a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 6 Jan 2008 18:31:35 +0000 Subject: [PATCH] * include/limits.h (TTY_NAME_MAX): Increase size to same as linux to allow for (at least) null terminating byte for "/dev/console". --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/include/limits.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * 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 * 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