diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2014-12-12 09:00:02 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2014-12-12 09:00:02 +0000 |
commit | 266e4e01e879d02f16fa1940aaeaa29b0990756d (patch) | |
tree | 534cc7da925a51a0106c8df53d86329256c1c244 /plugins/NewXstatusNotify/src/utils.cpp | |
parent | 4f57c77f78480ac20879d4ab1b10c47ec99666bf (diff) |
NewXStatusNotify:
-Fixed warnings
-Fixed possible crashes
git-svn-id: http://svn.miranda-ng.org/main/trunk@11340 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src/utils.cpp')
-rw-r--r-- | plugins/NewXstatusNotify/src/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewXstatusNotify/src/utils.cpp b/plugins/NewXstatusNotify/src/utils.cpp index b3fd4781ea..d5fe0e3902 100644 --- a/plugins/NewXstatusNotify/src/utils.cpp +++ b/plugins/NewXstatusNotify/src/utils.cpp @@ -111,7 +111,7 @@ WCHAR *mir_dupToUnicodeEx(char *ptr, UINT CodePage) TCHAR *AddCR(const TCHAR *stzText)
{
const TCHAR *found;
- int i = 0, len = mir_tstrlen(stzText), j;
+ size_t 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) {
|