Use Ustrlen() on a uschar
authorPhil Pennock <pdp@exim.org>
Mon, 14 Jul 2014 07:04:16 +0000 (03:04 -0400)
committerPhil Pennock <pdp@exim.org>
Mon, 14 Jul 2014 07:04:16 +0000 (03:04 -0400)
src/src/expand.c

index c0edef6..88a5ee3 100644 (file)
@@ -5908,7 +5908,7 @@ while (*s != 0)
        if (vp && *(void **)vp->value)
          {
          uschar * cp = tls_cert_fprt_sha256(*(void **)vp->value);
        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
          }
        else
 #endif