summaryrefslogtreecommitdiff
path: root/plugins/Sessions
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:06:32 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:06:32 +0000
commit5a17c9299e03bebf46169927abdeee34aaf8e854 (patch)
treecbd13080f33ac0b6396b9d3b8ba31a3c98de59f8 /plugins/Sessions
parented64312924e77707e7e5b5965c301692519f293a (diff)
replace strlen to mir_strlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Sessions')
-rw-r--r--plugins/Sessions/Src/Utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Sessions/Src/Utils.cpp b/plugins/Sessions/Src/Utils.cpp
index 8101b7272b..7a15a7131d 100644
--- a/plugins/Sessions/Src/Utils.cpp
+++ b/plugins/Sessions/Src/Utils.cpp
@@ -42,7 +42,7 @@ void AddSessionMark(MCONTACT hContact, int mode, char bit)
ptrA szValue(db_get_sa(hContact, MODNAME, "UserSessionsMarks"));
if (szValue) {
char *pszBuffer;
- if (strlen(szValue) < g_ses_count) {
+ if (mir_strlen(szValue) < g_ses_count) {
pszBuffer = (char*)mir_alloc(g_ses_count + 1);
memset(pszBuffer, 0, (g_ses_count + 1));
strcpy(pszBuffer, szValue);
@@ -132,7 +132,7 @@ void AddInSessionOrder(MCONTACT hContact, int mode, int ordernum, int writemode)
if (mode == 0) {
ptrA szValue(db_get_sa(hContact, MODNAME, "LastSessionsMarks"));
if (szValue) {
- int len = (int)strlen(szValue);
+ int len = (int)mir_strlen(szValue);
if (!len)
len = 20;
@@ -157,14 +157,14 @@ void AddInSessionOrder(MCONTACT hContact, int mode, int ordernum, int writemode)
ptrA szValue(db_get_sa(hContact, MODNAME, "UserSessionsOrder"));
if (szValue) {
char *pszBuffer;
- if (strlen(szValue) < (g_ses_count * 2)) {
+ if (mir_strlen(szValue) < (g_ses_count * 2)) {
pszBuffer = (char*)mir_alloc((g_ses_count * 2) + 1);
memset(pszBuffer, 0, ((g_ses_count * 2) + 1));
strcpy(pszBuffer, szValue);
}
else pszBuffer = mir_strdup(szValue);
- int len = (int)strlen(pszBuffer);
+ int len = (int)mir_strlen(pszBuffer);
len = (len == 0) ? 20 : len + 2;
char *temp = (char*)_alloca(len + 1);
mir_snprintf(temp, len + 1, "%02u%s", ordernum, szValue);