diff options
author | Russ Cox <rsc@golang.org> | 2010-05-27 14:51:47 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-05-27 14:51:47 -0700 |
commit | 72aaa4ca27df8cf19707c1b5b4795be22dbe2260 (patch) | |
tree | 0a1979ffe528bfde23ecdc7ef0339d7d0a7d1a80 /src/pkg/exec/exec.go | |
parent | 9ead4aa791e9113b87c9ddbde498290d1e5e4b22 (diff) | |
download | golang-72aaa4ca27df8cf19707c1b5b4795be22dbe2260.tar.gz |
changes &x -> x[0:] for array to slice conversion
R=gri
CC=golang-dev
http://codereview.appspot.com/1326042
Diffstat (limited to 'src/pkg/exec/exec.go')
-rw-r--r-- | src/pkg/exec/exec.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/exec/exec.go b/src/pkg/exec/exec.go index a1b7bd6b9..415b900b9 100644 --- a/src/pkg/exec/exec.go +++ b/src/pkg/exec/exec.go @@ -95,7 +95,7 @@ func Run(argv0 string, argv, envv []string, dir string, stdin, stdout, stderr in } // Run command. - p.Pid, err = os.ForkExec(argv0, argv, envv, dir, &fd) + p.Pid, err = os.ForkExec(argv0, argv, envv, dir, fd[0:]) if err != nil { goto Error } |