summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_userinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_userinfo.cpp')
-rw-r--r--protocols/JabberG/src/jabber_userinfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_userinfo.cpp b/protocols/JabberG/src/jabber_userinfo.cpp
index 68a08b7449..91cbcd76b9 100644
--- a/protocols/JabberG/src/jabber_userinfo.cpp
+++ b/protocols/JabberG/src/jabber_userinfo.cpp
@@ -257,7 +257,7 @@ static void sttFillResourceInfo(CJabberProto *ppro, HWND hwndTree, HTREEITEM hti
// Idle
if (r->m_dwIdleStartTime > 0) {
mir_tstrncpy(buf, _tctime(&r->m_dwIdleStartTime), SIZEOF(buf));
- size_t len = _tcslen(buf);
+ size_t len = mir_tstrlen(buf);
if (len > 0)
buf[len-1] = 0;
}
@@ -366,7 +366,7 @@ static void sttFillUserInfo(CJabberProto *ppro, HWND hwndTree, JABBER_LIST_ITEM
JABBER_RESOURCE_STATUS *r = item->getTemp();
if (r->m_dwIdleStartTime > 0) {
mir_tstrncpy(buf, _tctime(&r->m_dwIdleStartTime), SIZEOF(buf));
- size_t len = _tcslen(buf);
+ size_t len = mir_tstrlen(buf);
if (len > 0)
buf[len-1] = 0;
}