diff options
Diffstat (limited to 'plugins/MirFox/src/MirfoxMiranda.cpp')
-rw-r--r-- | plugins/MirFox/src/MirfoxMiranda.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirFox/src/MirfoxMiranda.cpp b/plugins/MirFox/src/MirfoxMiranda.cpp index b0984d3b66..bbe1819862 100644 --- a/plugins/MirFox/src/MirfoxMiranda.cpp +++ b/plugins/MirFox/src/MirfoxMiranda.cpp @@ -340,7 +340,7 @@ void CMirfoxMiranda::msgQueueThread(void* threadArg) strcpy_s(accountSzModuleName, mnSize, mirandaAccountsIter->szModuleName);
actionThreadArgPtr->accountSzModuleName = accountSzModuleName;
- std::size_t uasSize = wcslen(userActionSelection) + 1;
+ std::size_t uasSize = mir_wstrlen(userActionSelection) + 1;
actionThreadArgPtr->userActionSelection = new wchar_t[uasSize];
memset(actionThreadArgPtr->userActionSelection, 0, uasSize * sizeof(wchar_t));
wcsncpy_s(actionThreadArgPtr->userActionSelection, uasSize, userActionSelection, uasSize - 1);
@@ -368,7 +368,7 @@ void CMirfoxMiranda::msgQueueThread(void* threadArg) actionThreadArgPtr->accountSzModuleName = mirfoxDataPtr->getAccountSzModuleNameById(targetHandle);
}
- std::size_t uasSize = wcslen(userActionSelection) + 1;
+ std::size_t uasSize = mir_wstrlen(userActionSelection) + 1;
actionThreadArgPtr->userActionSelection = new wchar_t[uasSize];
memset(actionThreadArgPtr->userActionSelection, 0, uasSize * sizeof(wchar_t));
wcsncpy_s(actionThreadArgPtr->userActionSelection, uasSize, userActionSelection, uasSize - 1);
|