summaryrefslogtreecommitdiff
path: root/plugins/ConnectionNotify
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ConnectionNotify')
-rw-r--r--plugins/ConnectionNotify/src/ConnectionNotify.cpp4
-rw-r--r--plugins/ConnectionNotify/src/debug.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/ConnectionNotify/src/ConnectionNotify.cpp b/plugins/ConnectionNotify/src/ConnectionNotify.cpp
index 3b8417abfd..32eaf32610 100644
--- a/plugins/ConnectionNotify/src/ConnectionNotify.cpp
+++ b/plugins/ConnectionNotify/src/ConnectionNotify.cpp
@@ -75,11 +75,11 @@ BOOL strrep(TCHAR *src, TCHAR *needle, TCHAR *newstring)
_tcsncpy_s(begining, src, pos);
begining[pos] = 0;
- pos = pos + _tcslen(needle);
+ pos = pos + mir_tstrlen(needle);
_tcsncpy_s(tail, src + pos, _TRUNCATE);
begining[pos] = 0;
- pos = mir_sntprintf(src, _tcslen(src), _T("%s%s%s"), begining, newstring, tail);
+ pos = mir_sntprintf(src, mir_tstrlen(src), _T("%s%s%s"), begining, newstring, tail);
return TRUE;
}
diff --git a/plugins/ConnectionNotify/src/debug.cpp b/plugins/ConnectionNotify/src/debug.cpp
index d20d46f314..633a048af4 100644
--- a/plugins/ConnectionNotify/src/debug.cpp
+++ b/plugins/ConnectionNotify/src/debug.cpp
@@ -29,7 +29,7 @@ void _OutputDebugString(TCHAR* lpOutputString, ...)
TCHAR* s = va_arg(argptr, TCHAR *);
mir_sntprintf(OutMsg, SIZEOF(OutMsg), format, s);
_tcsncpy(format, OutMsg, _countof(OutMsg));
- j = (int)_tcslen(format);
+ j = (int)mir_tstrlen(format);
_tcscat(format, _T(" "));
break;
}
@@ -39,7 +39,7 @@ void _OutputDebugString(TCHAR* lpOutputString, ...)
char c = (char)va_arg(argptr, int);
mir_sntprintf(OutMsg, SIZEOF(OutMsg), format, c);
_tcsncpy(format, OutMsg, _countof(OutMsg));
- j = (int)_tcslen(format);
+ j = (int)mir_tstrlen(format);
_tcscat(format, _T(" "));
break;
}
@@ -49,7 +49,7 @@ void _OutputDebugString(TCHAR* lpOutputString, ...)
int d = va_arg(argptr, int);
mir_sntprintf(OutMsg, SIZEOF(OutMsg), format, d);
_tcsncpy(format, OutMsg, _countof(OutMsg));
- j = (int)_tcslen(format);
+ j = (int)mir_tstrlen(format);
_tcscat(format, _T(" "));
break;
}