From 30533d607a3e10ae1a688ea88ee5976115681cba Mon Sep 17 00:00:00 2001 From: David Symonds Date: Wed, 24 Jun 2009 19:02:29 -0700 Subject: 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 --- src/pkg/exec/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/exec/exec.go') 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 = "."; -- cgit v1.3