runtime: Correct syscall.Setenv for systems that don't have setenv.

From-SVN: r186912
This commit is contained in:
Ian Lance Taylor 2012-04-27 16:28:43 +00:00
parent f364750d77
commit 7b6a3460b3
1 changed files with 1 additions and 1 deletions

View File

@ -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);