summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2012-03-28 23:09:35 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2012-03-28 23:09:35 +0000
commit854e95fe80cf2750477daaa1fcce14b8ef43418c (patch)
tree6e969d5d72bd2960ebbc63e4783851f1fd86f857
parentf4b59fd62358f28e23bae2fa8756913fd758299a (diff)
* posix/cross-getconf.c (cross_getconf): Update after last merge.
git-svn-id: svn://svn.eglibc.org/trunk@17815 7b3dc134-2b1b-0410-93df-9e9f96275f8d
-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"