summaryrefslogtreecommitdiff
path: root/protocols/IRCG
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IRCG')
-rw-r--r--protocols/IRCG/src/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/IRCG/src/options.cpp b/protocols/IRCG/src/options.cpp
index e7582fe1a9..24f51da361 100644
--- a/protocols/IRCG/src/options.cpp
+++ b/protocols/IRCG/src/options.cpp
@@ -62,7 +62,7 @@ void CIrcProto::ReadSettings(TDbSetting* sets, int count)
case DBVT_TCHAR:
if (!getTString(p->name, &dbv)) {
if (p->size != -1) {
- size_t len = min(p->size - 1, _tcslen(dbv.ptszVal));
+ size_t len = min(p->size - 1, mir_tstrlen(dbv.ptszVal));
memcpy(ptr, dbv.pszVal, len*sizeof(TCHAR));
*(TCHAR*)&ptr[len*sizeof(TCHAR)] = 0;
}