diff options
Diffstat (limited to 'src/pkg/syscall/exec_plan9.go')
-rw-r--r-- | src/pkg/syscall/exec_plan9.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/syscall/exec_plan9.go b/src/pkg/syscall/exec_plan9.go index 99ad2f158..45ee542bb 100644 --- a/src/pkg/syscall/exec_plan9.go +++ b/src/pkg/syscall/exec_plan9.go @@ -486,7 +486,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) if err != nil || n != 0 { if n != 0 { - err = NewError(string(errbuf[:])) + err = NewError(string(errbuf[:n])) } // Child failed; wait for it to exit, to make sure |