[exim-cvs] Add standard wrapper macro for strchrnul()

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Exim Git Commits Mailing List
Ημερομηνία:  
Προς: exim-cvs
Αντικείμενο: [exim-cvs] Add standard wrapper macro for strchrnul()
Gitweb: https://git.exim.org/exim.git/commitdiff/21a2ff214bad18be078780b7b46978d644bbc58b
Commit:     21a2ff214bad18be078780b7b46978d644bbc58b
Parent:     c47288eb9c3656ea36f3dd121cfd486fc03d5681
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Wed Aug 21 11:03:25 2024 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Wed Aug 21 11:03:25 2024 +0100


    Add standard wrapper macro for strchrnul()
---
 src/src/mytypes.h     | 2 +-
 src/src/pdkim/pdkim.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/src/src/mytypes.h b/src/src/mytypes.h
index cac4ee3c9..598569d00 100644
--- a/src/src/mytypes.h
+++ b/src/src/mytypes.h
@@ -117,7 +117,7 @@ functions that are called quite often; for other calls to external libraries
 #define Urename(s,t)       rename(CCS(s),CCS(t))
 #define Ustat(s,t)         stat(CCS(s),t)
 #define Ustrchr(s,n)       US strchr(CCS(s),n)
-#define CUstrchr(s,n)      CUS strchr(CCS(s),n)
+#define Ustrchrnul(s,n)    US strchrnul(CCS(s),n)
 #define CUstrerror(n)      CUS strerror(n)
 #define Ustrcmp(s,t)       strcmp(CCS(s),CCS(t))
 #define Ustrcpy_nt(s,t)    strcpy(CS s, CCS t)        /* no taint check */
diff --git a/src/src/pdkim/pdkim.c b/src/src/pdkim/pdkim.c
index b2caa81ab..13820dc33 100644
--- a/src/src/pdkim/pdkim.c
+++ b/src/src/pdkim/pdkim.c
@@ -665,7 +665,7 @@ memset(pub, 0, sizeof(pdkim_pubkey));
 for (const uschar * ele = raw_record, * tspec, * end, * val; *ele; ele = end)
   {
   Uskip_whitespace(&ele);
-  end = US strchrnul(CS ele, ';');
+  end = Ustrchrnul(ele, ';');
   tspec = string_copyn(ele, end - ele);
   if (*end) end++;            /* skip the ; */



--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/