summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/job_generic.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2018-03-17 21:41:50 +0300
committerMataes <mataes2007@gmail.com>2018-03-17 21:41:50 +0300
commitf632783f27da5dd0ed3513bbee6182ea8af30afe (patch)
tree9cc74d2944501221126e628404532aed8c7b5cd9 /plugins/FTPFileYM/src/job_generic.cpp
parent32ac77ea600fa6ae33fea77d2be8fdaec865da7b (diff)
FTPFile: replace mir_strcpy and mir_wstrcpy
Diffstat (limited to 'plugins/FTPFileYM/src/job_generic.cpp')
-rw-r--r--plugins/FTPFileYM/src/job_generic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/FTPFileYM/src/job_generic.cpp b/plugins/FTPFileYM/src/job_generic.cpp
index 719da74d3f..5e732ad0dd 100644
--- a/plugins/FTPFileYM/src/job_generic.cpp
+++ b/plugins/FTPFileYM/src/job_generic.cpp
@@ -41,9 +41,9 @@ GenericJob::GenericJob(GenericJob *job) :
m_ftp(job->m_ftp),
m_tab(job->m_tab)
{
- mir_wstrcpy(m_tszFilePath, job->m_tszFilePath);
- mir_wstrcpy(m_tszFileName, job->m_tszFileName);
- mir_strcpy(m_szSafeFileName, job->m_szSafeFileName);
+ wcsncpy_s(m_tszFilePath, job->m_tszFilePath, _TRUNCATE);
+ wcsncpy_s(m_tszFileName, job->m_tszFileName, _TRUNCATE);
+ strncpy_s(m_szSafeFileName, job->m_szSafeFileName, _TRUNCATE);
}
GenericJob::~GenericJob()