summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-10-28 00:43:53 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2020-10-28 00:43:53 +0000
commitc86cd3103d043eafe748934c5f79b819505b03e9 (patch)
tree7d01b3d03dac293cec176f148f63bc49d945b4af /src
parent4eb7d1565e026303600c94470c3dc390053df555 (diff)
Avoid manually-counted long strings
Diffstat (limited to 'src')
-rw-r--r--src/src/expand.c4
-rw-r--r--src/src/smtp_in.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/src/expand.c b/src/src/expand.c
index 9bb30de4f..21758d832 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -1708,9 +1708,9 @@ authres_iprev(gstring * g)
if (sender_host_name)
g = string_append(g, 3, US";\n\tiprev=pass (", sender_host_name, US")");
else if (host_lookup_deferred)
- g = string_catn(g, US";\n\tiprev=temperror", 19);
+ g = string_cat(g, US";\n\tiprev=temperror");
else if (host_lookup_failed)
- g = string_catn(g, US";\n\tiprev=fail", 13);
+ g = string_cat(g, US";\n\tiprev=fail");
else
return g;
diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c
index da6d23602..cf6271c60 100644
--- a/src/src/smtp_in.c
+++ b/src/src/smtp_in.c
@@ -5899,7 +5899,7 @@ if (Ustrcmp(sender_host_auth_pubname, "tls") != 0)
else if (authenticated_id)
g = string_append(g, 2, US") x509.auth=", authenticated_id);
else
- g = string_catn(g, US") reason=x509.auth", 17);
+ g = string_cat(g, US") reason=x509.auth");
if (authenticated_sender)
g = string_append(g, 2, US" smtp.mailfrom=", authenticated_sender);