summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ')
-rw-r--r--protocols/IcqOscarJ/src/icq_avatar.cpp6
-rw-r--r--protocols/IcqOscarJ/src/icq_xstatus.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/protocols/IcqOscarJ/src/icq_avatar.cpp b/protocols/IcqOscarJ/src/icq_avatar.cpp
index 81ace619cb..6854c4acba 100644
--- a/protocols/IcqOscarJ/src/icq_avatar.cpp
+++ b/protocols/IcqOscarJ/src/icq_avatar.cpp
@@ -94,19 +94,19 @@ void CIcqProto::GetAvatarFileName(int dwUin, const char *szUid, TCHAR *pszDest,
_ltot(dwUin, pszDest + tPathLen, 10);
else if (szUid) {
TCHAR* p = mir_a2t(szUid);
- _tcscpy(pszDest + tPathLen, p);
+ mir_tstrcpy(pszDest + tPathLen, p);
mir_free(p);
}
else {
TCHAR szBuf[MAX_PATH];
if (CallService(MS_DB_GETPROFILENAMET, MAX_PATH, (LPARAM)szBuf))
- _tcscpy(pszDest + tPathLen, _T("avatar"));
+ mir_tstrcpy(pszDest + tPathLen, _T("avatar"));
else {
TCHAR *szLastDot = _tcsrchr(szBuf, '.');
if (szLastDot)
szLastDot[0] = '\0';
- _tcscpy(pszDest + tPathLen, szBuf);
+ mir_tstrcpy(pszDest + tPathLen, szBuf);
_tcscat(pszDest + tPathLen, _T("_avt"));
}
}
diff --git a/protocols/IcqOscarJ/src/icq_xstatus.cpp b/protocols/IcqOscarJ/src/icq_xstatus.cpp
index 7d2aa51625..ee19586cbe 100644
--- a/protocols/IcqOscarJ/src/icq_xstatus.cpp
+++ b/protocols/IcqOscarJ/src/icq_xstatus.cpp
@@ -122,15 +122,15 @@ static HANDLE LoadXStatusIconLibrary(TCHAR *path, const TCHAR *sub)
TCHAR* p = _tcsrchr(path, '\\');
HANDLE hLib;
- _tcscpy(p, sub);
+ mir_tstrcpy(p, sub);
_tcscat(p, _T("\\xstatus_ICQ.dll"));
if (hLib = LoadLibrary(path))
return hLib;
- _tcscpy(p, sub);
+ mir_tstrcpy(p, sub);
_tcscat(p, _T("\\xstatus_icons.dll"));
if (hLib = LoadLibrary(path))
return hLib;
- _tcscpy(p, _T("\\"));
+ mir_tstrcpy(p, _T("\\"));
return hLib;
}