summaryrefslogtreecommitdiff
path: root/src/modules/database
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:18:21 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:18:21 +0000
commitb499ebc740aa5480be013d40e0d8097066800642 (patch)
treeed410ee863f4afc0c579599741bf38b4e3ffb706 /src/modules/database
parent5a17c9299e03bebf46169927abdeee34aaf8e854 (diff)
replace _tcslen to mir_tstrlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13748 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database')
-rw-r--r--src/modules/database/database.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp
index 28abf44605..292f0000ab 100644
--- a/src/modules/database/database.cpp
+++ b/src/modules/database/database.cpp
@@ -66,7 +66,7 @@ bool IsInsideRootDir(TCHAR* profiledir, bool exact)
if (exact)
return _tcsicmp(profiledir, pfd) == 0;
- return _tcsnicmp(profiledir, pfd, _tcslen(pfd)) == 0;
+ return _tcsnicmp(profiledir, pfd, mir_tstrlen(pfd)) == 0;
}
// returns 1 if the profile path was returned, without trailing slash
@@ -89,7 +89,7 @@ int getProfilePath(TCHAR *buf, size_t cch)
// returns 1 if *.dat spec is matched
int isValidProfileName(const TCHAR *name)
{
- size_t len = _tcslen(name) - 4;
+ size_t len = mir_tstrlen(name) - 4;
return len > 0 && _tcsicmp(&name[len], _T(".dat")) == 0;
}