summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r--plugins/UserInfoEx/src/commonheaders.cpp2
-rw-r--r--plugins/UserInfoEx/src/commonheaders.h2
-rw-r--r--plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp4
-rw-r--r--plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp2
-rw-r--r--plugins/UserInfoEx/src/ex_import/tinystr.cpp4
-rw-r--r--plugins/UserInfoEx/src/ex_import/tinystr.h6
-rw-r--r--plugins/UserInfoEx/src/ex_import/tinyxml.cpp2
-rw-r--r--plugins/UserInfoEx/src/ex_import/tinyxmlparser.cpp8
-rw-r--r--plugins/UserInfoEx/src/mir_menuitems.cpp6
-rw-r--r--plugins/UserInfoEx/src/mir_string.cpp4
-rw-r--r--plugins/UserInfoEx/src/svc_email.cpp2
11 files changed, 21 insertions, 21 deletions
diff --git a/plugins/UserInfoEx/src/commonheaders.cpp b/plugins/UserInfoEx/src/commonheaders.cpp
index 37f7cfbce9..3d4942e84f 100644
--- a/plugins/UserInfoEx/src/commonheaders.cpp
+++ b/plugins/UserInfoEx/src/commonheaders.cpp
@@ -146,7 +146,7 @@ unsigned int hashSettingW_M2(const char * key)
unsigned int hashSetting_M2(const char * key)
{
if (key == NULL) return 0;
- const unsigned int len = (unsigned int)strlen((const char*)key);
+ const unsigned int len = (unsigned int)mir_strlen((const char*)key);
return hash_M2(key, len);
}
diff --git a/plugins/UserInfoEx/src/commonheaders.h b/plugins/UserInfoEx/src/commonheaders.h
index dc8b7b2f66..940553dac9 100644
--- a/plugins/UserInfoEx/src/commonheaders.h
+++ b/plugins/UserInfoEx/src/commonheaders.h
@@ -89,7 +89,7 @@ using namespace std;
* UserInfoEx plugin includes and macros
***********************************************************************************************************/
-#pragma intrinsic(memcmp, memcpy, memset, strcmp, strlen)
+#pragma intrinsic(memcmp, memcpy, memset, strcmp, mir_strlen)
#ifndef MIR_OK
#define MIR_OK 0 // success value of a miranda service function
diff --git a/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp b/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp
index d0f2a7e6f7..f5f1e05bee 100644
--- a/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp
+++ b/plugins/UserInfoEx/src/ex_import/classExImContactBase.cpp
@@ -161,7 +161,7 @@ BYTE CExImContactBase::fromIni(LPSTR& row)
LPSTR p1, p2 = NULL;
LPSTR pszUIDValue, pszUIDSetting, pszProto = NULL;
LPSTR pszBuf = &row[0];
- size_t cchBuf = strlen(row);
+ size_t cchBuf = mir_strlen(row);
MIR_FREE(_pszProtoOld);
MIR_FREE(_pszProto);
@@ -207,7 +207,7 @@ BYTE CExImContactBase::fromIni(LPSTR& row)
// create valid nickname
_pszNick = mir_strdup(pszBuf);
- size_t i = strlen(_pszNick)-1;
+ size_t i = mir_strlen(_pszNick)-1;
while (i > 0 && (_pszNick[i] == ' ' || _pszNick[i] == '\t')) {
_pszNick[i] = 0;
i--;
diff --git a/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp b/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp
index 803afccde9..f2082b398b 100644
--- a/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp
+++ b/plugins/UserInfoEx/src/ex_import/dlg_ExImOpenSaveFile.cpp
@@ -72,7 +72,7 @@ static void InitAlteredPlacesBar()
if (!CallService(MS_DB_GETPROFILEPATH, SIZEOF(szProfilePath), (LPARAM)szProfilePath))
{
// only add if different from profile path
- RegSetValueExA(hkPlacesBar, "Place4", 0, REG_SZ, (PBYTE)szProfilePath, (DWORD)strlen(szProfilePath) + 1);
+ RegSetValueExA(hkPlacesBar, "Place4", 0, REG_SZ, (PBYTE)szProfilePath, (DWORD)mir_strlen(szProfilePath) + 1);
}
RegCloseKey(hkPlacesBar);
diff --git a/plugins/UserInfoEx/src/ex_import/tinystr.cpp b/plugins/UserInfoEx/src/ex_import/tinystr.cpp
index dcab417a21..1041e8f037 100644
--- a/plugins/UserInfoEx/src/ex_import/tinystr.cpp
+++ b/plugins/UserInfoEx/src/ex_import/tinystr.cpp
@@ -110,7 +110,7 @@ TiXmlString operator + (const TiXmlString & a, const TiXmlString & b)
TiXmlString operator + (const TiXmlString & a, const char* b)
{
TiXmlString tmp;
- TiXmlString::size_type b_len = static_cast<TiXmlString::size_type>(strlen(b));
+ TiXmlString::size_type b_len = static_cast<TiXmlString::size_type>(mir_strlen(b));
tmp.reserve(a.length() + b_len);
tmp += a;
tmp.append(b, b_len);
@@ -120,7 +120,7 @@ TiXmlString operator + (const TiXmlString & a, const char* b)
TiXmlString operator + (const char* a, const TiXmlString & b)
{
TiXmlString tmp;
- TiXmlString::size_type a_len = static_cast<TiXmlString::size_type>(strlen(a));
+ TiXmlString::size_type a_len = static_cast<TiXmlString::size_type>(mir_strlen(a));
tmp.reserve(a_len + b.length());
tmp.append(a, a_len);
tmp += b;
diff --git a/plugins/UserInfoEx/src/ex_import/tinystr.h b/plugins/UserInfoEx/src/ex_import/tinystr.h
index bc854c8ac5..9c66f2b7e9 100644
--- a/plugins/UserInfoEx/src/ex_import/tinystr.h
+++ b/plugins/UserInfoEx/src/ex_import/tinystr.h
@@ -82,7 +82,7 @@ class TiXmlString
// TiXmlString constructor, based on a string
TIXML_EXPLICIT TiXmlString (const char * copy)
{
- init(static_cast<size_type>(strlen(copy)));
+ init(static_cast<size_type>(mir_strlen(copy)));
memcpy(start(), copy, length());
}
@@ -102,7 +102,7 @@ class TiXmlString
// = operator
TiXmlString& operator = (const char * copy)
{
- return assign(copy, (size_type)strlen(copy));
+ return assign(copy, (size_type)mir_strlen(copy));
}
// = operator
@@ -115,7 +115,7 @@ class TiXmlString
// += operator. Maps to append
TiXmlString& operator += (const char * suffix)
{
- return append(suffix, static_cast<size_type>(strlen(suffix)));
+ return append(suffix, static_cast<size_type>(mir_strlen(suffix)));
}
// += operator. Maps to append
diff --git a/plugins/UserInfoEx/src/ex_import/tinyxml.cpp b/plugins/UserInfoEx/src/ex_import/tinyxml.cpp
index 0faa453a14..2c815d536c 100644
--- a/plugins/UserInfoEx/src/ex_import/tinyxml.cpp
+++ b/plugins/UserInfoEx/src/ex_import/tinyxml.cpp
@@ -114,7 +114,7 @@ void TiXmlBase::PutString(const TIXML_STRING& str, TIXML_STRING* outString)
//*ME: warning C4267: convert 'size_t' to 'int'
//*ME: Int-Cast to make compiler happy ...
- outString->append(buf, (int)strlen(buf));
+ outString->append(buf, (int)mir_strlen(buf));
++i;
}
else
diff --git a/plugins/UserInfoEx/src/ex_import/tinyxmlparser.cpp b/plugins/UserInfoEx/src/ex_import/tinyxmlparser.cpp
index 04203f2f7a..40f271cb3e 100644
--- a/plugins/UserInfoEx/src/ex_import/tinyxmlparser.cpp
+++ b/plugins/UserInfoEx/src/ex_import/tinyxmlparser.cpp
@@ -501,7 +501,7 @@ const char* TiXmlBase::GetEntity(const char* p, char* value, int* length, TiXmlE
{
if (strncmp(entity[i].str, p, entity[i].strLength) == 0)
{
- assert(strlen(entity[i].str) == entity[i].strLength);
+ assert(mir_strlen(entity[i].str) == entity[i].strLength);
*value = entity[i].chr;
*length = 1;
return (p + entity[i].strLength);
@@ -616,7 +616,7 @@ const char* TiXmlBase::ReadText( const char* p,
}
}
}
- return p + strlen(endTag);
+ return p + mir_strlen(endTag);
}
#ifdef TIXML_USE_STL
@@ -1315,7 +1315,7 @@ const char* TiXmlComment::Parse(const char* p, TiXmlParsingData* data, TiXmlEnco
document->SetError(TIXML_ERROR_PARSING_COMMENT, p, data, encoding);
return 0;
}
- p += strlen(startTag);
+ p += mir_strlen(startTag);
p = ReadText(p, &value, false, endTag, false, encoding);
return p;
}
@@ -1467,7 +1467,7 @@ const char* TiXmlText::Parse(const char* p, TiXmlParsingData* data, TiXmlEncodin
document->SetError(TIXML_ERROR_PARSING_CDATA, p, data, encoding);
return 0;
}
- p += strlen(startTag);
+ p += mir_strlen(startTag);
// Keep all the white space, ignore the encoding, etc.
while ( p && *p
diff --git a/plugins/UserInfoEx/src/mir_menuitems.cpp b/plugins/UserInfoEx/src/mir_menuitems.cpp
index ff9ea7eb14..9aa4809852 100644
--- a/plugins/UserInfoEx/src/mir_menuitems.cpp
+++ b/plugins/UserInfoEx/src/mir_menuitems.cpp
@@ -324,7 +324,7 @@ void RebuildGroup()
CLISTMENUITEM mi = { sizeof(mi) };
mi.pszService = text;
- char* tDest = text + strlen(text);
+ char* tDest = text + mir_strlen(text);
// support new genmenu style
mi.flags = CMIF_ROOTHANDLE;
@@ -421,7 +421,7 @@ void RebuildSubGroup()
CLISTMENUITEM mi = { sizeof(mi) };
mi.pszService = text;
- char* tDest = text + strlen(text);
+ char* tDest = text + mir_strlen(text);
// support new genmenu style
mi.flags = CMIF_ROOTHANDLE;
@@ -551,7 +551,7 @@ INT_PTR RebuildAccount(WPARAM wParam, LPARAM lParam)
CLISTMENUITEM mi = { sizeof(mi) };
mi.pszService = text;
- char* tDest = text + strlen( text );
+ char* tDest = text + mir_strlen( text );
// support new genmenu style
mi.flags = CMIF_ROOTHANDLE;
diff --git a/plugins/UserInfoEx/src/mir_string.cpp b/plugins/UserInfoEx/src/mir_string.cpp
index 0e43a41517..d68ba2cb07 100644
--- a/plugins/UserInfoEx/src/mir_string.cpp
+++ b/plugins/UserInfoEx/src/mir_string.cpp
@@ -25,7 +25,7 @@ char* mir_strncat_c(char *pszDest, const char cSrc)
{
size_t size = 2;
if (pszDest != NULL)
- size += strlen(pszDest); //cSrc = 1 + 1 forNULL temination
+ size += mir_strlen(pszDest); //cSrc = 1 + 1 forNULL temination
char *pszRet = (char *)mir_realloc(pszDest, (sizeof(char) * size));
if (pszRet == NULL)
@@ -54,7 +54,7 @@ wchar_t* mir_wcsncat_c(wchar_t *pwszDest, const wchar_t wcSrc)
char* mir_strnerase(char *pszDest, size_t sizeFrom, size_t sizeTo)
{
char *pszReturn = NULL;
- size_t sizeNew, sizeLen = strlen(pszDest);
+ size_t sizeNew, sizeLen = mir_strlen(pszDest);
if (sizeFrom >= 0 && sizeFrom < sizeLen && sizeTo >= 0 && sizeTo <= sizeLen && sizeFrom < sizeTo) {
sizeNew = sizeLen - (sizeTo - sizeFrom);
size_t sizeCopy = sizeNew - sizeFrom;
diff --git a/plugins/UserInfoEx/src/svc_email.cpp b/plugins/UserInfoEx/src/svc_email.cpp
index b32516bd20..bcc90fa7b2 100644
--- a/plugins/UserInfoEx/src/svc_email.cpp
+++ b/plugins/UserInfoEx/src/svc_email.cpp
@@ -89,7 +89,7 @@ static INT_PTR MenuCommand(WPARAM wParam,LPARAM lParam)
LPSTR szUrl;
INT_PTR len;
- len = mir_strlen(val) + strlen("mailto:");
+ len = mir_strlen(val) + mir_strlen("mailto:");
szUrl = (LPSTR)_alloca(len + 1);