]> Cypherpunks repositories - gostls13.git/commitdiff
os/exec: don't convert byte slice to string when using verb %s
authorJes Cok <xigua67damn@gmail.com>
Sat, 19 Aug 2023 00:21:00 +0000 (00:21 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 21 Aug 2023 23:20:06 +0000 (23:20 +0000)
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>
src/os/exec/lp_windows_test.go

index 4d85a5f41573e15d0782ab1827f1ee94e4162a8a..efa26e7c4629c3a66ca4eadcc65770bec47d77cd 100644 (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) {