diff options
author | George Hazan <george.hazan@gmail.com> | 2014-11-30 13:03:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-11-30 13:03:10 +0000 |
commit | 46789bd14d5fc7448dbd1b68138a8b08964353bc (patch) | |
tree | 27851079c9870206fe7ccb9e2248dff8ff550af2 /plugins/UserInfoEx/src/ctrl_edit.cpp | |
parent | 1f91ea192b7cbc5265e9bca4c69fcbc157402cfa (diff) |
safe lstr* replacements: mir_strlen, mir_wstrlen, mir_strcpy, mir_wstrcpy,
mir_strncpy, mir_wstrncpy, mir_strcat, mir_wstrcat, mir_strncat, mir_wstrncat
git-svn-id: http://svn.miranda-ng.org/main/trunk@11171 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/ctrl_edit.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/ctrl_edit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/UserInfoEx/src/ctrl_edit.cpp b/plugins/UserInfoEx/src/ctrl_edit.cpp index 71e5f5e0de..cf9511b7f1 100644 --- a/plugins/UserInfoEx/src/ctrl_edit.cpp +++ b/plugins/UserInfoEx/src/ctrl_edit.cpp @@ -124,19 +124,19 @@ BOOL CEditCtrl::OnInfoChanged(MCONTACT hContact, LPCSTR pszProto) case DBVT_BYTE: _itot_s(dbv.bVal, szText, SIZEOF(szText), 10); SetWindowText(_hwnd, szText); - _pszValue = mir_tcsdup(szText); + _pszValue = mir_tstrdup(szText); break; case DBVT_WORD: _itot_s(dbv.wVal, szText, SIZEOF(szText), 10); SetWindowText(_hwnd, szText); - _pszValue = mir_tcsdup(szText); + _pszValue = mir_tstrdup(szText); break; case DBVT_DWORD: _itot_s(dbv.dVal, szText, SIZEOF(szText), 10); SetWindowText(_hwnd, szText); - _pszValue = mir_tcsdup(szText); + _pszValue = mir_tstrdup(szText); break; case DBVT_TCHAR: @@ -250,7 +250,7 @@ void CEditCtrl::OnChangedByUser(WORD wChangedMsg) { const int cch = GetWindowTextLength(_hwnd); - _Flags.B.hasChanged = mir_tcslen(_pszValue) != cch; + _Flags.B.hasChanged = mir_tstrlen(_pszValue) != cch; _Flags.B.hasCustom = (cch > 0); if (!_Flags.B.hasChanged && _Flags.B.hasCustom) { |