aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec
diff options
context:
space:
mode:
authorJes Cok <xigua67damn@gmail.com>2023-08-19 00:21:00 +0000
committerGopher Robot <gobot@golang.org>2023-08-21 23:20:06 +0000
commite3c80f5778fd3fbdd61f521fd29a02ad091513d5 (patch)
tree9729d405d505c0f95ec6b65067a48a2bfd457f37 /src/os/exec
parentc513a61988a6d6f9778f50676681348364ccdfee (diff)
downloadgo-e3c80f5778fd3fbdd61f521fd29a02ad091513d5.tar.xz
os/exec: don't convert byte slice to string when using verb %s
Change-Id: I4d755e401acf670fb5a154ff59e4e4335ed2138e GitHub-Last-Rev: a91d74ae55f84a0e572d2ace335ec42038d7a76f GitHub-Pull-Request: golang/go#62150 Reviewed-on: https://go-review.googlesource.com/c/go/+/520918 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/os/exec')
-rw-r--r--src/os/exec/lp_windows_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/exec/lp_windows_test.go b/src/os/exec/lp_windows_test.go
index 4d85a5f415..efa26e7c46 100644
--- a/src/os/exec/lp_windows_test.go
+++ b/src/os/exec/lp_windows_test.go
@@ -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) {