1
0
mirror of https://github.com/golang/go synced 2024-09-29 22:24:33 -06:00

os/exec: don't convert byte slice to string when using verb %s

This commit is contained in:
Jes Cok 2023-08-19 08:12:03 +08:00
parent a9859a7df7
commit a91d74ae55

View File

@ -45,7 +45,7 @@ func cmdExec(args ...string) {
fmt.Fprintf(os.Stderr, "Child: %s %s", err, string(output))
os.Exit(1)
}
fmt.Printf("%s", string(output))
fmt.Printf("%s", output)
}
func installExe(t *testing.T, dest, src string) {