From 942f39de3b74a41b5981803b5e9bd375e186f175 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 23 Feb 2018 17:35:44 -0700 Subject: [PATCH] cast return from XSTRLEN --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 1ec02b6b5..351758559 100755 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -4288,7 +4288,7 @@ static int GetName(DecodedCert* cert, int nameType) } if (copy && !tooBig) { XMEMCPY(&full[idx], copy, XSTRLEN(copy)); - idx += XSTRLEN(copy); + idx += (word32)XSTRLEN(copy); XMEMCPY(&full[idx], &cert->source[cert->srcIdx], strLen); idx += strLen; }