diff options
| author | David Symonds <dsymonds@golang.org> | 2009-06-24 19:02:29 -0700 |
|---|---|---|
| committer | David Symonds <dsymonds@golang.org> | 2009-06-24 19:02:29 -0700 |
| commit | 30533d607a3e10ae1a688ea88ee5976115681cba (patch) | |
| tree | c423ba821d41ea2d673a7420ecf7c082aa827863 /src/pkg/exec/exec.go | |
| parent | 466dd8da4ebe07a78bac55bba4e640e516eca5d4 (diff) | |
| download | go-30533d607a3e10ae1a688ea88ee5976115681cba.tar.xz | |
Change strings.Split, bytes.Split to take a maximum substring count argument.
R=rsc
APPROVED=r
DELTA=131 (39 added, 10 deleted, 82 changed)
OCL=30669
CL=30723
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 c2b7bdd59b..ebb40a2fe8 100644 --- a/src/pkg/exec/exec.go +++ b/src/pkg/exec/exec.go @@ -214,7 +214,7 @@ func LookPath(file string) (string, os.Error) { // (equivalent to PATH="."). pathenv = ""; } - for i, dir := range strings.Split(pathenv, ":") { + for i, dir := range strings.Split(pathenv, ":", 0) { if dir == "" { // Unix shell semantics: path element "" means "." dir = "."; |
