[exim-cvs] Avoid manually-counted long strings

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Avoid manually-counted long strings
Gitweb: https://git.exim.org/exim.git/commitdiff/c86cd3103d043eafe748934c5f79b819505b03e9
Commit:     c86cd3103d043eafe748934c5f79b819505b03e9
Parent:     4eb7d1565e026303600c94470c3dc390053df555
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Wed Oct 28 00:43:53 2020 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Wed Oct 28 00:43:53 2020 +0000


    Avoid manually-counted long strings
---
 src/src/expand.c  | 4 ++--
 src/src/smtp_in.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/src/src/expand.c b/src/src/expand.c
index 9bb30de..21758d8 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 da6d236..cf6271c 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);