From: Rich Felker Date: Fri, 29 Nov 2013 17:45:09 +0000 (-0500) Subject: increase TTY_NAME_MAX limit to 32 X-Git-Tag: v0.9.15~34 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8c8cf4bbd269d0535cad48f4088083b5a466803f;p=oweals%2Fmusl.git increase TTY_NAME_MAX limit to 32 the old value of 20 was reported by Laurent Bercot as being insufficient for a reasonable real-world usage case. actual problem was the internal buffer used by ttyname(), but the implementation of ttyname uses TTY_NAME_MAX, and for consistency it's best to increase both. the new value is aligned with glibc. --- diff --git a/include/limits.h b/include/limits.h index 574b406a..f9805a1e 100644 --- a/include/limits.h +++ b/include/limits.h @@ -55,7 +55,7 @@ #define WORD_BIT 32 #define SSIZE_MAX LONG_MAX #define TZNAME_MAX 6 -#define TTY_NAME_MAX 20 +#define TTY_NAME_MAX 32 #define HOST_NAME_MAX 255 /* Implementation choices... */