From 6095500263f20b073c5b603b37337a7589fb89eb Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 24 Jan 2022 07:47:49 -0500 Subject: [PATCH] LibC: Define the POSIX TZNAME_MAX limit POSIX defines this as the "Maximum number of bytes supported for the name of a timezone (not of the TZ variable)." It must have a minimum value of _POSIX_TZNAME_MAX (6). The longest time zone name in the TZDB is about 40 chars, so 64 is chosen here for a little wiggle room, and to round up to a power of 2. --- Userland/Libraries/LibC/limits.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibC/limits.h b/Userland/Libraries/LibC/limits.h index 4fde490201..58a980bde8 100644 --- a/Userland/Libraries/LibC/limits.h +++ b/Userland/Libraries/LibC/limits.h @@ -82,6 +82,8 @@ #define LINK_MAX 4096 +#define TZNAME_MAX 64 + #ifdef __USE_POSIX # include #endif