diff options
author | George Hazan <george.hazan@gmail.com> | 2014-09-22 14:57:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-09-22 14:57:06 +0000 |
commit | 97c3f6fe20b6474159beb924c6707bef481faa14 (patch) | |
tree | 874a46db938a12b54b88e04f6324e6fece8bb3de /protocols/JabberG/src/jabber_password.cpp | |
parent | fc3a4607ee5cfe9e7cfed8d63e2cb1d549f61d92 (diff) |
correct last _tcsncpy_s parameter's value
git-svn-id: http://svn.miranda-ng.org/main/trunk@10558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_password.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_password.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_password.cpp b/protocols/JabberG/src/jabber_password.cpp index 95fd7cd7ea..a994f8bb7a 100644 --- a/protocols/JabberG/src/jabber_password.cpp +++ b/protocols/JabberG/src/jabber_password.cpp @@ -70,7 +70,7 @@ static INT_PTR CALLBACK JabberChangePasswordDlgProc(HWND hwndDlg, UINT msg, WPAR MessageBox(hwndDlg, TranslateT("Current password is incorrect."), TranslateT("Change Password"), MB_OK|MB_ICONSTOP|MB_SETFOREGROUND);
break;
}
- _tcsncpy_s(ppro->m_ThreadInfo->newPassword, newPasswd, SIZEOF(ppro->m_ThreadInfo->newPassword));
+ ppro->m_ThreadInfo->tszNewPassword = mir_tstrdup(newPasswd);
XmlNodeIq iq( ppro->AddIQ(&CJabberProto::OnIqResultSetPassword, JABBER_IQ_TYPE_SET, _A2T(ppro->m_ThreadInfo->server)));
HXML q = iq << XQUERY(JABBER_FEAT_REGISTER);
|