aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/exec/exec.go')
-rw-r--r--src/os/exec/exec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go
index 26ddfe633c..24cd6b141a 100644
--- a/src/os/exec/exec.go
+++ b/src/os/exec/exec.go
@@ -516,7 +516,7 @@ func (c *Cmd) String() string {
// report the exact executable path (plus args)
b := new(strings.Builder)
b.WriteString(c.Path)
- for _, a := range c.Args[1:] {
+ for _, a := range c.argv()[1:] {
b.WriteByte(' ')
b.WriteString(a)
}