diff options
| author | Ian Lance Taylor <iant@golang.org> | 2020-02-26 18:34:25 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2020-03-01 02:13:41 +0000 |
| commit | 33e98326a25d54cef19e94ca73c45eaed8847f56 (patch) | |
| tree | 274bf4523096b15aaceed831d2cbfe6a77eb6d00 /src/net/textproto/reader.go | |
| parent | 2962c96c9f24b685c86133cdd7612026827278d8 (diff) | |
| download | go-33e98326a25d54cef19e94ca73c45eaed8847f56.tar.xz | |
net/textproto: pass missing argument to fmt.Sprintf
The vet tool didn't catch this because the fmt.Sprintf format argument
was written as an expression.
Fixes #37467
Change-Id: I72c20ba45e3f42c195fa5e68adcdb9837c7d7ad5
Reviewed-on: https://go-review.googlesource.com/c/go/+/221297
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Diffstat (limited to 'src/net/textproto/reader.go')
| -rw-r--r-- | src/net/textproto/reader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/textproto/reader.go b/src/net/textproto/reader.go index a505da985c..d26e981ae4 100644 --- a/src/net/textproto/reader.go +++ b/src/net/textproto/reader.go @@ -557,7 +557,7 @@ func noValidation(_ []byte) error { return nil } // contain a colon. func mustHaveFieldNameColon(line []byte) error { if bytes.IndexByte(line, ':') < 0 { - return ProtocolError(fmt.Sprintf("malformed MIME header: missing colon: %q" + string(line))) + return ProtocolError(fmt.Sprintf("malformed MIME header: missing colon: %q", line)) } return nil } |
