summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/mim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/mim.cpp')
-rw-r--r--plugins/TabSRMM/src/mim.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp
index 10cb62cad9..90ee544ba8 100644
--- a/plugins/TabSRMM/src/mim.cpp
+++ b/plugins/TabSRMM/src/mim.cpp
@@ -132,9 +132,9 @@ const TCHAR* CMimAPI::getUserDir()
{
if (m_userDir[0] == 0) {
if (ServiceExists(MS_FOLDERS_REGISTER_PATH))
- mir_tstrncpy(m_userDir, L"%miranda_userdata%", SIZEOF(m_userDir));
+ _tcsncpy_s(m_userDir, L"%miranda_userdata%", _TRUNCATE);
else
- mir_tstrncpy(m_userDir, VARST(_T("%miranda_userdata%")), SIZEOF(m_userDir));
+ _tcsncpy_s(m_userDir, VARST(_T("%miranda_userdata%")), _TRUNCATE);
Utils::ensureTralingBackslash(m_userDir);
}
@@ -151,12 +151,12 @@ void CMimAPI::InitPaths()
mir_sntprintf(m_szProfilePath, MAX_PATH, _T("%stabSRMM"), szUserdataDir);
if (ServiceExists(MS_FOLDERS_REGISTER_PATH)) {
- mir_tstrncpy(m_szChatLogsPath, _T("%miranda_logpath%"), MAX_PATH);
- mir_tstrncpy(m_szSkinsPath, _T("%miranda_path%\\Skins\\TabSRMM"), MAX_PATH);
+ _tcsncpy_s(m_szChatLogsPath, _T("%miranda_logpath%"), _TRUNCATE);
+ _tcsncpy_s(m_szSkinsPath, _T("%miranda_path%\\Skins\\TabSRMM"), _TRUNCATE);
}
else {
- mir_tstrncpy(m_szChatLogsPath, VARST(_T("%miranda_logpath%")), MAX_PATH);
- mir_tstrncpy(m_szSkinsPath, VARST(_T("%miranda_path%\\Skins\\TabSRMM")), MAX_PATH);
+ _tcsncpy_s(m_szChatLogsPath, VARST(_T("%miranda_logpath%")), _TRUNCATE);
+ _tcsncpy_s(m_szSkinsPath, VARST(_T("%miranda_path%\\Skins\\TabSRMM")), _TRUNCATE);
}
Utils::ensureTralingBackslash(m_szChatLogsPath);