diff options
author | George Hazan <george.hazan@gmail.com> | 2014-09-22 14:06:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-09-22 14:06:14 +0000 |
commit | fc3a4607ee5cfe9e7cfed8d63e2cb1d549f61d92 (patch) | |
tree | 754549fa0a5a62cbf5fa07b93d74bf4f3ab49061 /protocols/JabberG/src/jabber_opt.cpp | |
parent | 772ba179473fa39074278cad7aae84870c9310b8 (diff) |
_tcsncpy -> _tcsncpy_s; strncpy -> strncpy_s
git-svn-id: http://svn.miranda-ng.org/main/trunk@10557 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_opt.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_opt.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index b4e4e156bf..a29a93728f 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -284,10 +284,10 @@ private: ShowWindow(GetDlgItem(m_hwnd, IDC_PROGRESS_REG), SW_SHOW);
ThreadData *thread = new ThreadData(m_regInfo->proto, JABBER_SESSION_REGISTER);
- _tcsncpy(thread->username, m_regInfo->username, SIZEOF(thread->username));
- _tcsncpy(thread->password, m_regInfo->password, SIZEOF(thread->password));
- strncpy(thread->server, m_regInfo->server, SIZEOF(thread->server));
- strncpy(thread->manualHost, m_regInfo->manualHost, SIZEOF(thread->manualHost));
+ _tcsncpy_s(thread->username, m_regInfo->username, _TRUNCATE);
+ _tcsncpy_s(thread->password, m_regInfo->password, _TRUNCATE);
+ strncpy_s(thread->server, m_regInfo->server, _TRUNCATE);
+ strncpy_s(thread->manualHost, m_regInfo->manualHost, _TRUNCATE);
thread->port = m_regInfo->port;
thread->useSSL = m_regInfo->useSSL;
thread->reg_hwndDlg = m_hwnd;
@@ -503,7 +503,7 @@ protected: void OnApply()
{
// clear saved password
- *m_proto->m_savedPassword = 0;
+ m_proto->m_savedPassword = NULL;
if (m_chkSavePassword.GetState() == BST_CHECKED)
m_proto->setTString("Password", ptrT(m_txtPassword.GetText()));
@@ -1734,7 +1734,7 @@ protected: void OnApply()
{
// clear saved password
- *m_proto->m_savedPassword = 0;
+ m_proto->m_savedPassword = NULL;
BOOL bUseHostnameAsResource = FALSE;
TCHAR szCompName[MAX_COMPUTERNAME_LENGTH + 1], szResource[MAX_COMPUTERNAME_LENGTH + 1];
|