summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/job_generic.cpp
diff options
context:
space:
mode:
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()