From 6017c86e5d88450e05ec0bf9424b5c6d6eb48f0e Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 31 Jul 2024 19:36:59 +0000 Subject: [PATCH] wolfcrypt/src/wc_port.c: fix -Wconversions in wc_strdup_ex(). --- wolfcrypt/src/wc_port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/wc_port.c b/wolfcrypt/src/wc_port.c index 572c20e131..32571585ec 100644 --- a/wolfcrypt/src/wc_port.c +++ b/wolfcrypt/src/wc_port.c @@ -1180,10 +1180,10 @@ int wc_strncasecmp(const char *s1, const char *s2, size_t n) #ifdef USE_WOLF_STRDUP char* wc_strdup_ex(const char *src, int memType) { char *ret = NULL; - int len = 0; + word32 len = 0; if (src) { - len = (int)XSTRLEN(src); + len = (word32)XSTRLEN(src); ret = (char*)XMALLOC(len, NULL, memType); if (ret != NULL) { XMEMCPY(ret, src, len);