summaryrefslogtreecommitdiff
path: root/plugins/Exchange/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Exchange/src/utils.cpp')
-rw-r--r--plugins/Exchange/src/utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Exchange/src/utils.cpp b/plugins/Exchange/src/utils.cpp
index 4208576f9f..7f05636da4 100644
--- a/plugins/Exchange/src/utils.cpp
+++ b/plugins/Exchange/src/utils.cpp
@@ -224,11 +224,11 @@ int ThreadCheckEmail(int bForceAttempt)
return 0;
}
-void _popupUtil(char* szMsg)
+void _popupUtil(TCHAR* szMsg)
{
POPUPDATAT ppd = {0};
ppd.lchIcon = hiMailIcon;
- _tcscpy(ppd.lptzContactName, _T("Exchange notifier"));
- _tcscpy(ppd.lptzText, mir_a2t(szMsg));
+ _tcsncpy(ppd.lptzContactName, _T("Exchange notifier"), MAX_CONTACTNAME-1);
+ _tcsncpy(ppd.lptzText, szMsg,MAX_SECONDLINE-1);
PUAddPopupT(&ppd); //show a popup to tell the user what we're doing.
}