[exim-cvs] Use Ustrlen() on a uschar

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Use Ustrlen() on a uschar
Gitweb: http://git.exim.org/exim.git/commitdiff/ca492d885a01e0bf0b9abfab456c31d5c087588c
Commit:     ca492d885a01e0bf0b9abfab456c31d5c087588c
Parent:     cb54b2a05b5f5f3548ac98e74b90eb8633052919
Author:     Phil Pennock <pdp@???>
AuthorDate: Mon Jul 14 03:04:16 2014 -0400
Committer:  Phil Pennock <pdp@???>
CommitDate: Mon Jul 14 03:04:16 2014 -0400


    Use Ustrlen() on a uschar
---
 src/src/expand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/src/expand.c b/src/src/expand.c
index c0edef6..88a5ee3 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -5908,7 +5908,7 @@ while (*s != 0)
     if (vp && *(void **)vp->value)
       {
       uschar * cp = tls_cert_fprt_sha256(*(void **)vp->value);
-      yield = string_cat(yield, &size, &ptr, cp, (int)strlen(cp));
+      yield = string_cat(yield, &size, &ptr, cp, (int)Ustrlen(cp));
       }
     else
 #endif