From 132efdd9fb3eb4930f1fb70fc337b95ee6f174ee Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Fri, 24 Jan 2025 17:00:39 +0100 Subject: [PATCH] don't use non-constant for string formatting found by go1.24rc --- smtpserver/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtpserver/server.go b/smtpserver/server.go index 090641e..db9d29f 100644 --- a/smtpserver/server.go +++ b/smtpserver/server.go @@ -1924,7 +1924,7 @@ func (c *conn) cmdRcpt(p *parser) { if alias != nil { c.recipients = append(c.recipients, recipient{fpath, nil, &rcptAlias{*alias, canonical}}) } else if dest.SMTPError != "" { - xsmtpServerErrorf(codes{dest.SMTPErrorCode, dest.SMTPErrorSecode}, dest.SMTPErrorMsg) + xsmtpServerErrorf(codes{dest.SMTPErrorCode, dest.SMTPErrorSecode}, "%s", dest.SMTPErrorMsg) } else { c.recipients = append(c.recipients, recipient{fpath, &rcptAccount{accountName, dest, canonical}, nil}) }