diff --git a/src/include/limits.h b/src/include/limits.h index 938b64a4..df2c776e 100644 --- a/src/include/limits.h +++ b/src/include/limits.h @@ -1,4 +1,4 @@ -/* $OpenBSD: limits.h,v 1.12 2005/12/13 00:35:22 millert Exp $ */ +/* $OpenBSD: limits.h,v 1.13 2005/12/31 19:29:38 millert Exp $ */ /* $NetBSD: limits.h,v 1.7 1994/10/26 00:56:00 cgd Exp $ */ /* @@ -65,12 +65,9 @@ #define _POSIX2_RE_DUP_MAX _POSIX_RE_DUP_MAX #if __POSIX_VISIBLE >= 200112 -#define _POSIX_TTY_NAME_MAX 260 -#define _POSIX_LOGIN_NAME_MAX MAXLOGNAME - -#define TTY_NAME_MAX _POSIX_TTY_NAME_MAX -#define LOGIN_NAME_MAX MAXLOGNAME -#endif +#define _POSIX_TTY_NAME_MAX 9 /* includes trailing NUL */ +#define _POSIX_LOGIN_NAME_MAX 9 /* includes trailing NUL */ +#endif /* __POSIX_VISIBLE >= 200112 */ #endif /* __POSIX_VISIBLE */ #if __XPG_VISIBLE