summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/utils.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2018-03-31 20:01:27 +0300
committerMataes <mataes2007@gmail.com>2018-03-31 20:01:27 +0300
commitc3e735f9dcd73f1d9cbf502f2e04c1a4ecf9f0cd (patch)
treee9ab42a462ff74cabf7d4f31001ea53353191d45 /plugins/Msg_Export/src/utils.cpp
parent8d6d0d8db6a105676442a1e592c5973a2a14500e (diff)
Msg_Export: mir_strcpy and mir_wstrcpy replaced to strncpy_s and wcsncpy_s
Diffstat (limited to 'plugins/Msg_Export/src/utils.cpp')
-rwxr-xr-xplugins/Msg_Export/src/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp
index 7dc168b153..b7baa46071 100755
--- a/plugins/Msg_Export/src/utils.cpp
+++ b/plugins/Msg_Export/src/utils.cpp
@@ -464,7 +464,7 @@ bool bWriteHexToFile(HANDLE hFile, void * pData, int nSize)
bool bReadMirandaDirAndPath()
{
wchar_t szDBPath[MAX_PATH], tmp[MAX_PATH];
- mir_wstrcpy(szDBPath, pszDbPathError);
+ wcsncpy_s(szDBPath, pszDbPathError, _TRUNCATE);
PathToAbsoluteW(L"miranda32.exe", tmp);
sMirandaPath = tmp;
sMirandaPath.erase(sMirandaPath.find_last_of(L"\\"));
@@ -821,7 +821,7 @@ void DisplayErrorDialog(const wchar_t *pszError, tstring& sFilePath, DBEVENTINFO
if (MessageBox(nullptr, sError.c_str(), MSG_BOX_TITEL, MB_YESNO) == IDYES) {
OPENFILENAME ofn; // common dialog box structure
wchar_t szFile[260]; // buffer for file name
- mir_wstrcpy(szFile, L"DebugInfo.txt");
+ wcsncpy_s(szFile, L"DebugInfo.txt", _TRUNCATE);
// Initialize OPENFILENAME
memset(&ofn, 0, sizeof(OPENFILENAME));