Fix compiler warning with MSVC

Fixes compiler warnings found with Microsoft Visual Studio 2015 (and earlier
versions).
This commit is contained in:
Simon B 2016-11-03 01:11:37 +00:00 committed by Janos Follath
parent 44ea01110c
commit 635f215145

View File

@ -1121,7 +1121,7 @@ int mbedtls_x509_crt_parse_path( mbedtls_x509_crt *chain, const char *path )
p = filename + len;
filename[len++] = '*';
w_ret = MultiByteToWideChar( CP_ACP, 0, filename, len, szDir,
w_ret = MultiByteToWideChar( CP_ACP, 0, filename, (int)len, szDir,
MAX_PATH - 3 );
if( w_ret == 0 )
return( MBEDTLS_ERR_X509_BAD_INPUT_DATA );