diff options
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;
|