diff options
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/utils.cpp b/src/mir_core/src/utils.cpp index a2f1ab0171..d065e8fa1b 100644 --- a/src/mir_core/src/utils.cpp +++ b/src/mir_core/src/utils.cpp @@ -317,7 +317,7 @@ MIR_CORE_DLL(bool) hex2binW(const wchar_t *pSrc, void *pData, size_t len) if (pSrc == NULL || pData == NULL || len == 0)
return false;
- size_t bufLen = wcslen(pSrc);
+ size_t bufLen = wcslen(pSrc)/2;
if (pSrc[bufLen * 2] != 0 || bufLen > len)
return false;
|