summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/chat/clist.cpp2
-rw-r--r--src/modules/database/database.cpp2
-rw-r--r--src/modules/database/profilemanager.cpp6
-rw-r--r--src/modules/netlib/netlibsecurity.cpp2
-rw-r--r--src/modules/utils/path.cpp2
-rw-r--r--src/modules/utils/timezones.cpp2
6 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/chat/clist.cpp b/src/modules/chat/clist.cpp
index 6a2ca27a09..8f8535eea1 100644
--- a/src/modules/chat/clist.cpp
+++ b/src/modules/chat/clist.cpp
@@ -29,7 +29,7 @@ MCONTACT AddRoom(const char *pszModule, const TCHAR *pszRoom, const TCHAR *pszDi
if (groupName)
_tcsncpy_s(pszGroup, groupName, _TRUNCATE);
else
- _tcscpy(pszGroup, _T("Chat rooms"));
+ mir_tstrcpy(pszGroup, _T("Chat rooms"));
if (pszGroup[0]) {
HANDLE hGroup = Clist_GroupExists(pszGroup);
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp
index bdf770646d..2f16ad53df 100644
--- a/src/modules/database/database.cpp
+++ b/src/modules/database/database.cpp
@@ -76,7 +76,7 @@ int getProfilePath(TCHAR *buf, size_t cch)
GetPrivateProfileString(_T("Database"), _T("ProfileDir"), _T(""), profiledir, SIZEOF(profiledir), mirandabootini);
if (profiledir[0] == 0)
- _tcscpy(profiledir, _T("%miranda_path%\\Profiles"));
+ mir_tstrcpy(profiledir, _T("%miranda_path%\\Profiles"));
size_t len = PathToAbsoluteT( VARST(profiledir), buf);
diff --git a/src/modules/database/profilemanager.cpp b/src/modules/database/profilemanager.cpp
index 95b62b756e..b7e0d5ee7e 100644
--- a/src/modules/database/profilemanager.cpp
+++ b/src/modules/database/profilemanager.cpp
@@ -246,7 +246,7 @@ class CChooseProfileDlg : public CDlgBase
bool bFileLocked = true;
TCHAR *p = _tcsrchr(profile, '.');
- _tcscpy(sizeBuf, _T("0 KB"));
+ mir_tstrcpy(sizeBuf, _T("0 KB"));
if (p != NULL) *p = 0;
LVITEM item = { 0 };
@@ -258,11 +258,11 @@ class CChooseProfileDlg : public CDlgBase
if (_tstat(tszFullPath, &statbuf) == 0) {
if (statbuf.st_size > 1000000) {
mir_sntprintf(sizeBuf, SIZEOF(sizeBuf), _T("%.3lf"), (double)statbuf.st_size / 1048576.0);
- _tcscpy(sizeBuf + 5, _T(" MB"));
+ mir_tstrcpy(sizeBuf + 5, _T(" MB"));
}
else {
mir_sntprintf(sizeBuf, SIZEOF(sizeBuf), _T("%.3lf"), (double)statbuf.st_size / 1024.0);
- _tcscpy(sizeBuf + 5, _T(" KB"));
+ mir_tstrcpy(sizeBuf + 5, _T(" KB"));
}
bFileLocked = !fileExist(tszFullPath);
}
diff --git a/src/modules/netlib/netlibsecurity.cpp b/src/modules/netlib/netlibsecurity.cpp
index a1ddd855aa..31873e94a7 100644
--- a/src/modules/netlib/netlibsecurity.cpp
+++ b/src/modules/netlib/netlibsecurity.cpp
@@ -294,7 +294,7 @@ char* NtlmCreateResponseFromChallenge(HANDLE hSecurity, const char *szChallenge,
_tcsncpy(newLogin, domainName, domainLen);
newLogin[domainLen] = '\\';
- _tcscpy(newLogin + domainLen + 1, login);
+ mir_tstrcpy(newLogin + domainLen + 1, login);
char* szChl = NtlmCreateResponseFromChallenge(hSecurity, NULL, newLogin, psw, http, complete);
mir_free(szChl);
diff --git a/src/modules/utils/path.cpp b/src/modules/utils/path.cpp
index 0a9c1123ad..3564e357f0 100644
--- a/src/modules/utils/path.cpp
+++ b/src/modules/utils/path.cpp
@@ -195,7 +195,7 @@ static __forceinline char *GetPathVarX(char *, int code)
static __forceinline int _xcscmp(const TCHAR *s1, const TCHAR *s2) { return mir_tstrcmp(s1, s2); }
static __forceinline int _xcsncmp(const TCHAR *s1, const TCHAR *s2, size_t n) { return _tcsncmp(s1, s2, n); }
static __forceinline size_t _xcslen(const TCHAR *s1) { return mir_tstrlen(s1); }
-static __forceinline TCHAR *_xcscpy(TCHAR *s1, const TCHAR *s2) { return _tcscpy(s1, s2); }
+static __forceinline TCHAR *_xcscpy(TCHAR *s1, const TCHAR *s2) { return mir_tstrcpy(s1, s2); }
static __forceinline TCHAR *_xcsncpy(TCHAR *s1, const TCHAR *s2, size_t n) { return _tcsncpy(s1, s2, n); }
static __forceinline TCHAR *_xstrselect(TCHAR *, char *s1, TCHAR *s2) { return s2; }
static __forceinline TCHAR *_itox(TCHAR *, int a) { return _itot(a, (TCHAR *)mir_alloc(sizeof(TCHAR)*20), 10); }
diff --git a/src/modules/utils/timezones.cpp b/src/modules/utils/timezones.cpp
index ce928fbb24..435d358220 100644
--- a/src/modules/utils/timezones.cpp
+++ b/src/modules/utils/timezones.cpp
@@ -525,7 +525,7 @@ void InitTimeZones(void)
tz->tzi.DaylightDate = tzi.DaylightDate;
tz->tzi.DaylightBias = tzi.DaylightBias;
- _tcscpy(tz->tszName, tszName);
+ mir_tstrcpy(tz->tszName, tszName);
tz->hash = mir_hashstrT(tszName);
tz->offset = INT_MIN;