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 /plugins/NewXstatusNotify/src/utils.cpp | |
parent | 4f0e30cdf56fbafdf955bbe8b93930bab9e39bd0 (diff) |
lstr* replacements
git-svn-id: http://svn.miranda-ng.org/main/trunk@11176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src/utils.cpp')
-rw-r--r-- | plugins/NewXstatusNotify/src/utils.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/NewXstatusNotify/src/utils.cpp b/plugins/NewXstatusNotify/src/utils.cpp index 0ab6804695..b3fd4781ea 100644 --- a/plugins/NewXstatusNotify/src/utils.cpp +++ b/plugins/NewXstatusNotify/src/utils.cpp @@ -111,24 +111,24 @@ WCHAR *mir_dupToUnicodeEx(char *ptr, UINT CodePage) TCHAR *AddCR(const TCHAR *stzText)
{
const TCHAR *found;
- int i = 0, len = lstrlen(stzText), j;
+ int i = 0, len = mir_tstrlen(stzText), j;
TCHAR *tmp = (TCHAR *)mir_alloc(1024 * sizeof(TCHAR));
*tmp = _T('\0');
while ((found = _tcsstr((stzText + i), _T("\n"))) != NULL && _tcslen(tmp) + 1 < 1024) {
j = (int)(found - stzText);
- if (lstrlen(tmp) + j - i + 2 < 1024)
+ if (mir_tstrlen(tmp) + j - i + 2 < 1024)
tmp = _tcsncat(tmp, stzText + i, j - i);
else
break;
if (j == 0 || *(stzText + j - 1) != _T('\r'))
- tmp = lstrcat(tmp, _T("\r"));
+ tmp = mir_tstrcat(tmp, _T("\r"));
- tmp = lstrcat(tmp, _T("\n"));
+ tmp = mir_tstrcat(tmp, _T("\n"));
i = j + 1;
}
- if (lstrlen(tmp) + len - i + 1 < 1024)
- tmp = lstrcat(tmp, stzText + i);
+ if (mir_tstrlen(tmp) + len - i + 1 < 1024)
+ tmp = mir_tstrcat(tmp, stzText + i);
return tmp;
}
|