From f632783f27da5dd0ed3513bbee6182ea8af30afe Mon Sep 17 00:00:00 2001 From: Mataes Date: Sat, 17 Mar 2018 21:41:50 +0300 Subject: FTPFile: replace mir_strcpy and mir_wstrcpy --- plugins/FTPFileYM/src/job_delete.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/FTPFileYM/src/job_delete.cpp') diff --git a/plugins/FTPFileYM/src/job_delete.cpp b/plugins/FTPFileYM/src/job_delete.cpp index 0a39dd7ab1..6bb44b32dd 100644 --- a/plugins/FTPFileYM/src/job_delete.cpp +++ b/plugins/FTPFileYM/src/job_delete.cpp @@ -90,7 +90,7 @@ void DeleteJob::run() } else if (manDlg != nullptr && m_treeItem) { wchar_t *error = mir_a2u(szError); - mir_wstrcpy(m_treeItem->m_tszToolTip, error); + wcsncpy_s(m_treeItem->m_tszToolTip, error, _TRUNCATE); m_treeItem->setState(Manager::TreeItem::_ERROR()); FREE(error); } -- cgit v1.2.3