projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f5f5f9
)
runtime: Correct syscall.Setenv for systems that don't have setenv.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 27 Apr 2012 16:28:21 +0000
(16:28 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Fri, 27 Apr 2012 16:28:21 +0000
(16:28 +0000)
From-SVN: r186911
libgo/runtime/go-setenv.c
patch
|
blob
|
history
diff --git
a/libgo/runtime/go-setenv.c
b/libgo/runtime/go-setenv.c
index 78717f4705ab383281dde0a4f67568392fc5bc60..a62796b3de2fbc979dba42544f0a1fef332fa2a8 100644
(file)
--- 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 =
m
alloc (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);