diff options
author | George Hazan <george.hazan@gmail.com> | 2014-11-30 18:51:36 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-11-30 18:51:36 +0000 |
commit | 688f55ba998c19304a29727c910504903f4cc49a (patch) | |
tree | 69121ebb6d02bcf9e670428b11813087fc7f1640 /protocols/EmLanProto | |
parent | 4f0e30cdf56fbafdf955bbe8b93930bab9e39bd0 (diff) |
lstr* replacements
git-svn-id: http://svn.miranda-ng.org/main/trunk@11176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/EmLanProto')
-rw-r--r-- | protocols/EmLanProto/src/amdproto.cpp | 2 | ||||
-rw-r--r-- | protocols/EmLanProto/src/mlan.cpp | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp index 29e286a969..9f9675f0c7 100644 --- a/protocols/EmLanProto/src/amdproto.cpp +++ b/protocols/EmLanProto/src/amdproto.cpp @@ -81,7 +81,7 @@ static INT_PTR __cdecl EMPGetCaps(WPARAM wParam,LPARAM ) static INT_PTR __cdecl EMPGetName(WPARAM wParam,LPARAM lParam)
{
- lstrcpyn((char*)lParam, "EmLan", wParam);
+ mir_tstrncpy((char*)lParam, "EmLan", wParam);
return 0;
}
diff --git a/protocols/EmLanProto/src/mlan.cpp b/protocols/EmLanProto/src/mlan.cpp index 945a6a16b7..267c17dca3 100644 --- a/protocols/EmLanProto/src/mlan.cpp +++ b/protocols/EmLanProto/src/mlan.cpp @@ -437,10 +437,10 @@ void CMLan::RecvMessageUrl(CCSDATA* ccs) dbei.szModule = PROTONAME; dbei.timestamp = pre->timestamp; dbei.flags = pre->flags&PREF_CREATEREAD?DBEF_READ:0; - dbei.cbBlob = lstrlen(pre->szMessage)+1; + dbei.cbBlob = mir_tstrlen(pre->szMessage)+1; if (!lstrcmpA(ccs->szProtoService, PSR_URL)) { - dbei.cbBlob += 2+lstrlen(pre->szMessage+dbei.cbBlob+1); + dbei.cbBlob += 2+mir_tstrlen(pre->szMessage+dbei.cbBlob+1); } dbei.pBlob = (PBYTE)pre->szMessage; @@ -475,7 +475,7 @@ int CMLan::SendMessageUrl(CCSDATA* ccs, bool isUrl) int len; if (isUrl) { - len = lstrlen((char*)ccs->lParam); + len = mir_tstrlen((char*)ccs->lParam); ((char*)ccs->lParam)[len] = 1; } TDataHolder* hold = new TDataHolder(ccs, cid, isUrl?LEXT_SENDURL:LEXT_SENDMESSAGE, this); @@ -545,10 +545,10 @@ void CMLan::SearchExt(TDataHolder* hold) if (strcmp(hold->msg, cont->m_nick)==0 || strcmp(hold->msg, "*")==0) { char buf[MAX_HOSTNAME_LEN]; - lstrcpy(buf, cont->m_nick); - int len = lstrlen(buf); + mir_tstrcpy(buf, cont->m_nick); + int len = mir_tstrlen(buf); buf[len] = '@'; - lstrcpy(buf+len+1, inet_ntoa(cont->m_addr)); + mir_tstrcpy(buf+len+1, inet_ntoa(cont->m_addr)); psr.hdr.nick = cont->m_nick; psr.hdr.firstName=""; psr.hdr.lastName=""; @@ -662,7 +662,7 @@ u_char* CMLan::CreatePacket(TPacket& pak, int* pBufLen) int nameLen; if (pak.strName) { - nameLen = lstrlen(pak.strName); + nameLen = mir_tstrlen(pak.strName); len += 1+1+nameLen+1; } @@ -672,9 +672,9 @@ u_char* CMLan::CreatePacket(TPacket& pak, int* pBufLen) int mesLen = 0; if (pak.strMessage) { - mesLen = lstrlen(pak.strMessage); + mesLen = mir_tstrlen(pak.strMessage); if (pak.flIsUrl) - mesLen += 1+lstrlen(pak.strMessage+mesLen+1); + mesLen += 1+mir_tstrlen(pak.strMessage+mesLen+1); len += 3+1+4+mesLen+1; } @@ -687,7 +687,7 @@ u_char* CMLan::CreatePacket(TPacket& pak, int* pBufLen) int awayLen = 0; if (pak.strAwayMessage) { - awayLen = lstrlen(pak.strAwayMessage); + awayLen = mir_tstrlen(pak.strAwayMessage); len += 3+1+4+awayLen+1; } @@ -863,9 +863,9 @@ void CMLan::LoadSettings() } if (!dbv.pszVal[0]) dbv.pszVal = "EmLan_User"; - lstrcpy(m_name, dbv.pszVal); + mir_tstrcpy(m_name, dbv.pszVal); } - m_nameLen = lstrlen(m_name); + m_nameLen = mir_tstrlen(m_name); if (GetStatus()!=LM_LISTEN) { |