summaryrefslogtreecommitdiff
path: root/src/pkg/exec/lp_plan9.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/exec/lp_plan9.go')
-rw-r--r--src/pkg/exec/lp_plan9.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/exec/lp_plan9.go b/src/pkg/exec/lp_plan9.go
index c4e2a7a0f..e4751a4df 100644
--- a/src/pkg/exec/lp_plan9.go
+++ b/src/pkg/exec/lp_plan9.go
@@ -42,7 +42,7 @@ func LookPath(file string) (string, os.Error) {
}
path := os.Getenv("path")
- for _, dir := range strings.Split(path, "\000", -1) {
+ for _, dir := range strings.Split(path, "\000") {
if err := findExecutable(dir + "/" + file); err == nil {
return dir + "/" + file, nil
}