diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-27 16:28:21 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-27 16:28:21 +0000 |
commit | 1a3dd03cc70c25851dc19f53ba6d2d087e247b2c (patch) | |
tree | a52ccf0ef0705707e7aff8b35ce74d3e9fcafe5e /libgo/runtime | |
parent | 76d340ac07ad50937aa1ecbfdf0475b010a5700a (diff) | |
download | gcc-1a3dd03cc70c25851dc19f53ba6d2d087e247b2c.tar.gz |
runtime: Correct syscall.Setenv for systems that don't have setenv.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186911 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/go-setenv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/go-setenv.c b/libgo/runtime/go-setenv.c index 78717f4705a..a62796b3de2 100644 --- a/libgo/runtime/go-setenv.c +++ b/libgo/runtime/go-setenv.c @@ -50,7 +50,7 @@ setenv_c (struct __go_string k, struct __go_string v) #else /* !defined(HAVE_SETENV) */ - kn = malloc (k.__length + v.__length + 2); + kn = __go_alloc (k.__length + v.__length + 2); __builtin_memcpy (kn, ks, k.__length); kn[k.__length] = '='; __builtin_memcpy (kn + k.__length + 1, vs, v.__length); |