summaryrefslogtreecommitdiff
path: root/protocols/EmLanProto
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-27 14:23:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-27 14:23:31 +0000
commit2f261839b60692e33d0e160344d0d636d49c90ba (patch)
tree187921722698b681d29df3f6e60fb18394a5e9d5 /protocols/EmLanProto
parent2e931a0b2780587d85f3902468c935f5adba70c8 (diff)
less TCHARs
git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/EmLanProto')
-rw-r--r--protocols/EmLanProto/src/amdproto.cpp2
-rw-r--r--protocols/EmLanProto/src/mlan.cpp24
2 files changed, 13 insertions, 13 deletions
diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp
index 49b41bd1d6..5956be29e0 100644
--- a/protocols/EmLanProto/src/amdproto.cpp
+++ b/protocols/EmLanProto/src/amdproto.cpp
@@ -79,7 +79,7 @@ static INT_PTR __cdecl EMPGetCaps(WPARAM wParam, LPARAM)
static INT_PTR __cdecl EMPGetName(WPARAM wParam, LPARAM lParam)
{
- mir_tstrncpy((char*)lParam, "EmLan", wParam);
+ mir_strncpy((char*)lParam, "EmLan", wParam);
return 0;
}
diff --git a/protocols/EmLanProto/src/mlan.cpp b/protocols/EmLanProto/src/mlan.cpp
index 1ba95f8429..25e0258bd5 100644
--- a/protocols/EmLanProto/src/mlan.cpp
+++ b/protocols/EmLanProto/src/mlan.cpp
@@ -383,9 +383,9 @@ void CMLan::RecvMessageUrl(CCSDATA* ccs)
dbei.szModule = PROTONAME;
dbei.timestamp = pre->timestamp;
dbei.flags = pre->flags & PREF_CREATEREAD ? DBEF_READ : 0;
- dbei.cbBlob = (DWORD)mir_tstrlen(pre->szMessage) + 1;
+ dbei.cbBlob = (DWORD)mir_strlen(pre->szMessage) + 1;
if (!mir_strcmp(ccs->szProtoService, PSR_URL)) {
- dbei.cbBlob += 2 + (DWORD)mir_tstrlen(pre->szMessage + dbei.cbBlob + 1);
+ dbei.cbBlob += 2 + (DWORD)mir_strlen(pre->szMessage + dbei.cbBlob + 1);
}
dbei.pBlob = (PBYTE)pre->szMessage;
@@ -418,7 +418,7 @@ int CMLan::SendMessageUrl(CCSDATA* ccs, bool isUrl)
int cid = GetRandomProcId();
size_t len;
if (isUrl) {
- len = mir_tstrlen((char*)ccs->lParam);
+ len = mir_strlen((char*)ccs->lParam);
((char*)ccs->lParam)[len] = 1;
}
TDataHolder* hold = new TDataHolder(ccs, cid, isUrl ? LEXT_SENDURL : LEXT_SENDMESSAGE, this);
@@ -479,10 +479,10 @@ void CMLan::SearchExt(TDataHolder* hold)
for (TContact *cont = m_pRootContact; cont; cont = cont->m_prev) {
if (mir_strcmp(hold->msg, cont->m_nick) == 0 || mir_strcmp(hold->msg, "*") == 0) {
char buf[MAX_HOSTNAME_LEN];
- mir_tstrcpy(buf, cont->m_nick);
- size_t len = mir_tstrlen(buf);
+ mir_strcpy(buf, cont->m_nick);
+ size_t len = mir_strlen(buf);
buf[len] = '@';
- mir_tstrcpy(buf + len + 1, inet_ntoa(cont->m_addr));
+ mir_strcpy(buf + len + 1, inet_ntoa(cont->m_addr));
psr.nick.a = cont->m_nick;
psr.firstName.a = "";
psr.lastName.a = "";
@@ -590,7 +590,7 @@ u_char* CMLan::CreatePacket(TPacket& pak, int* pBufLen)
size_t nameLen;
if (pak.strName) {
- nameLen = mir_tstrlen(pak.strName);
+ nameLen = mir_strlen(pak.strName);
len += 1 + 1 + nameLen + 1;
}
@@ -599,9 +599,9 @@ u_char* CMLan::CreatePacket(TPacket& pak, int* pBufLen)
size_t mesLen = 0;
if (pak.strMessage) {
- mesLen = mir_tstrlen(pak.strMessage);
+ mesLen = mir_strlen(pak.strMessage);
if (pak.flIsUrl)
- mesLen += 1 + mir_tstrlen(pak.strMessage + mesLen + 1);
+ mesLen += 1 + mir_strlen(pak.strMessage + mesLen + 1);
len += 3 + 1 + 4 + mesLen + 1;
}
@@ -613,7 +613,7 @@ u_char* CMLan::CreatePacket(TPacket& pak, int* pBufLen)
size_t awayLen = 0;
if (pak.strAwayMessage) {
- awayLen = mir_tstrlen(pak.strAwayMessage);
+ awayLen = mir_strlen(pak.strAwayMessage);
len += 3 + 1 + 4 + awayLen + 1;
}
@@ -780,9 +780,9 @@ void CMLan::LoadSettings()
}
if (!dbv.pszVal[0])
dbv.pszVal = "EmLan_User";
- mir_tstrcpy(m_name, dbv.pszVal);
+ mir_strcpy(m_name, dbv.pszVal);
}
- m_nameLen = (int)mir_tstrlen(m_name);
+ m_nameLen = (int)mir_strlen(m_name);
if (GetStatus() != LM_LISTEN) {
int ipcount = GetHostAddrCount();