mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-07-24 01:51:03 +08:00
Merge pull request #7081 from tom-cosgrove-arm/dont-use-lstrlenW
This commit is contained in:
commit
ab1f3c153a
@ -1449,8 +1449,8 @@ int mbedtls_x509_crt_parse_path(mbedtls_x509_crt *chain, const char *path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
w_ret = WideCharToMultiByte(CP_ACP, 0, file_data.cFileName,
|
w_ret = WideCharToMultiByte(CP_ACP, 0, file_data.cFileName,
|
||||||
lstrlenW(file_data.cFileName),
|
-1,
|
||||||
p, (int) len - 1,
|
p, (int) len,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
if (w_ret == 0) {
|
if (w_ret == 0) {
|
||||||
ret = MBEDTLS_ERR_X509_FILE_IO_ERROR;
|
ret = MBEDTLS_ERR_X509_FILE_IO_ERROR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user