Skip to content

Commit

Permalink
wolfcrypt/src/wc_port.c: fix -Wconversions in wc_strdup_ex().
Browse files Browse the repository at this point in the history
  • Loading branch information
douzzer committed Jul 31, 2024
1 parent 407b789 commit 6017c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wolfcrypt/src/wc_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6017c86

Please sign in to comment.