summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/ChangeLog.eglibc4
-rw-r--r--libc/posix/cross-getconf.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/libc/ChangeLog.eglibc b/libc/ChangeLog.eglibc
index 3ee9a296a..325da43a9 100644
--- a/libc/ChangeLog.eglibc
+++ b/libc/ChangeLog.eglibc
@@ -1,3 +1,7 @@
+2012-03-28 Joseph Myers <joseph@codesourcery.com>
+
+ * posix/cross-getconf.c (cross_getconf): Update after last merge.
+
2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
* elf/Makefile ($(objpfx)tst-unused-dep.out): Run through the
diff --git a/libc/posix/cross-getconf.c b/libc/posix/cross-getconf.c
index fb4883915..7cbd9c7bc 100644
--- a/libc/posix/cross-getconf.c
+++ b/libc/posix/cross-getconf.c
@@ -93,6 +93,10 @@ cross_getconf (int name)
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"];
+
switch (name)
{
#include "confstr.inc"