only use constant strings in string formatting

builds with go1.24rc1 fail on these.
only the case in smtpserver could be triggered externally.
This commit is contained in:
Mechiel Lukkien
2024-12-14 09:38:56 +01:00
parent 5320ec1c5b
commit d082aaada8
4 changed files with 10 additions and 10 deletions

View File

@ -117,7 +117,7 @@ func (s *Sig) Header() (string, error) {
} else if i == len(s.SignedHeaders)-1 {
v += ";"
}
w.Addf(sep, v)
w.Addf(sep, "%s", v)
}
}
if len(s.CopiedHeaders) > 0 {
@ -139,7 +139,7 @@ func (s *Sig) Header() (string, error) {
} else if i == len(s.CopiedHeaders)-1 {
v += ";"
}
w.Addf(sep, v)
w.Addf(sep, "%s", v)
}
}