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 | e3fe6186634f9b74b9f39924516e24b068b9e141 (patch) | |
| tree | c423ba821d41ea2d673a7420ecf7c082aa827863 /src/pkg/exec/exec.go | |
| parent | c9af30256dfa40f26f2a60e88b68dadfbabdd2ba (diff) | |
| download | golang-e3fe6186634f9b74b9f39924516e24b068b9e141.tar.gz | |
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 c2b7bdd59..ebb40a2fe 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 = "."; |
