diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-04-07 19:17:54 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-04-07 19:17:54 +0000 |
commit | aed337ad90f145991a39b7900b8d42dc18178366 (patch) | |
tree | ca09e611f0f0fd6f6ba8c83364f548d097e3ab2e /plugins/SecureIM/src/crypt_popups.cpp | |
parent | f19019ce1e932f1c773ca00e87fd64aea6e32430 (diff) |
SecureIM:
- Minor Fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12661 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/crypt_popups.cpp')
-rw-r--r-- | plugins/SecureIM/src/crypt_popups.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SecureIM/src/crypt_popups.cpp b/plugins/SecureIM/src/crypt_popups.cpp index a3c3a48016..f6f0a3396c 100644 --- a/plugins/SecureIM/src/crypt_popups.cpp +++ b/plugins/SecureIM/src/crypt_popups.cpp @@ -42,9 +42,9 @@ void showPopup(LPCSTR lpzText, MCONTACT hContact, HICON hIcon, UINT type) ppd.lchContact = hContact; //Be sure to use a GOOD handle, since this will not be checked.
ppd.lchIcon = hIcon;
LPWSTR lpwzContactName = (LPWSTR)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, hContact, GSMDF_UNICODE);
- wcscpy(ppd.lpwzContactName, lpwzContactName);
+ wcsncpy(ppd.lpwzContactName, lpwzContactName, MAX_CONTACTNAME-1);
LPWSTR lpwzText = mir_a2u(lpzText);
- wcscpy(ppd.lpwzText, TranslateW(lpwzText));
+ wcsncpy(ppd.lpwzText, TranslateW(lpwzText),MAX_SECONDLINE-1);
mir_free(lpwzText);
ppd.colorBack = colorBack;
ppd.colorText = colorText;
|