summaryrefslogtreecommitdiff
path: root/src/modules/database
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 20:07:58 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 20:07:58 +0000
commitc09aa99a7e9915c503064d6eb5e9dd1bdd2a673f (patch)
tree9b1b1447755b03dc6fcb327b027789b415e3119f /src/modules/database
parentbabf7873a3fe373d60ef22b1b671d98e014d8819 (diff)
replace _tcscpy to mir_tstrcpy
git-svn-id: http://svn.miranda-ng.org/main/trunk@13764 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database')
-rw-r--r--src/modules/database/database.cpp2
-rw-r--r--src/modules/database/profilemanager.cpp6
2 files changed, 4 insertions, 4 deletions
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);
}