mirror of
https://github.com/golang/go
synced 2024-11-15 04:50:31 -07:00
[release-branch.go1] syscall: fix plan9 build broken by CL 6458050
This commit is contained in:
parent
1a07fca27d
commit
c645541691
@ -420,11 +420,9 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
envvalue, err := bytePtrFromString(v[i+1:])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
envvParsed = append(envvParsed, envItem{envname, envvalue, len(v) - i})
|
||||
envvalue := make([]byte, len(v)-i)
|
||||
copy(envvalue, v[i+1:])
|
||||
envvParsed = append(envvParsed, envItem{envname, &envvalue[0], len(v) - i})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user