From b499ebc740aa5480be013d40e0d8097066800642 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 22 May 2015 10:18:21 +0000 Subject: replace _tcslen to mir_tstrlen git-svn-id: http://svn.miranda-ng.org/main/trunk@13748 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ConnectionNotify/src/ConnectionNotify.cpp | 4 ++-- plugins/ConnectionNotify/src/debug.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/ConnectionNotify') 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; } -- cgit v1.2.3