diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2015-08-31 11:19:42 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2015-08-31 11:19:42 +0000 |
commit | c25eec8ffd8605d473192faec7ef11b9abf7a10b (patch) | |
tree | e12e06159f67f67e7d07480f35337fc48470fa07 /gcc | |
parent | cd55d18e5da549f75cc2ae0bbfb69aa232753c19 (diff) | |
download | gcc-c25eec8ffd8605d473192faec7ef11b9abf7a10b.zip gcc-c25eec8ffd8605d473192faec7ef11b9abf7a10b.tar.gz gcc-c25eec8ffd8605d473192faec7ef11b9abf7a10b.tar.bz2 |
Avoid strndup in gcc.c (PR bootstrap/67363)
PR bootstrap/67363
* gcc.c (env_manager::xput): Replace strndup by xstrndup.
From-SVN: r227337
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gcc.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a0123b1..88ccb22 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + PR bootstrap/67363 + * gcc.c (env_manager::xput): Replace strndup by xstrndup. + 2015-08-31 Tom de Vries <tom@codesourcery.com> * tree-ssa-loop-manip.c (find_uses_to_rename_use) @@ -123,7 +123,7 @@ env_manager::xput (const char *string) gcc_assert (equals); struct kv kv; - kv.m_key = strndup (string, equals - string); + kv.m_key = xstrndup (string, equals - string); const char *cur_value = ::getenv (kv.m_key); if (m_debug) fprintf (stderr, "saving old value: %s\n",cur_value); |