summaryrefslogtreecommitdiff
path: root/posix/confstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/confstr.c')
-rw-r--r--posix/confstr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/posix/confstr.c b/posix/confstr.c
index ad8fea9b28..cad65615ad 100644
--- a/posix/confstr.c
+++ b/posix/confstr.c
@@ -33,9 +33,10 @@ confstr (name, buf, len)
{
const char *string = "";
size_t string_len = 1;
+
+ /* Note that this buffer must be large enough for the longest strings
+ used below. */
char restenvs[4 * sizeof "POSIX_V7_LPBIG_OFFBIG"];
- char restenvs[4 * sizeof "POSIX_V6_LPBIG_OFFBIG"];
- char restenvs[4 * sizeof "XBS5_LPBIG_OFFBIG"];
switch (name)
{