summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/image.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:18:21 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:18:21 +0000
commitb499ebc740aa5480be013d40e0d8097066800642 (patch)
treeed410ee863f4afc0c579599741bf38b4e3ffb706 /protocols/Gadu-Gadu/src/image.cpp
parent5a17c9299e03bebf46169927abdeee34aaf8e854 (diff)
replace _tcslen to mir_tstrlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13748 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/image.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/image.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Gadu-Gadu/src/image.cpp b/protocols/Gadu-Gadu/src/image.cpp
index 61452bb6fc..a93de45b5a 100644
--- a/protocols/Gadu-Gadu/src/image.cpp
+++ b/protocols/Gadu-Gadu/src/image.cpp
@@ -227,10 +227,10 @@ TCHAR *gg_img_getfilter(TCHAR *szFilter, int nSize)
// Make up filter
_tcsncpy(pFilter, szFilterName, nSize);
- pFilter += _tcslen(pFilter) + 1;
+ pFilter += mir_tstrlen(pFilter) + 1;
if (pFilter >= szFilter + nSize) return NULL;
_tcsncpy(pFilter, szFilterMask, nSize - (pFilter - szFilter));
- pFilter += _tcslen(pFilter) + 1;
+ pFilter += mir_tstrlen(pFilter) + 1;
if (pFilter >= szFilter + nSize) return NULL;
*pFilter = 0;
@@ -787,7 +787,7 @@ TCHAR *gg_img_hasextension(TCHAR *filename)
TCHAR *imgtype = _tcsrchr(filename, '.');
if (imgtype != NULL)
{
- size_t len = _tcslen(imgtype);
+ size_t len = mir_tstrlen(imgtype);
imgtype++;
if (len == 4 && (_tcsicmp(imgtype, _T("bmp")) == 0 ||
_tcsicmp(imgtype, _T("gif")) == 0 ||
@@ -818,7 +818,7 @@ int GGPROTO::img_displayasmsg(MCONTACT hContact, void *img)
}
else {
_tcscpy(szPath, path);
- tPathLen = _tcslen(szPath);
+ tPathLen = mir_tstrlen(szPath);
}
if ( _taccess(szPath, 0)){
@@ -835,7 +835,7 @@ int GGPROTO::img_displayasmsg(MCONTACT hContact, void *img)
mir_sntprintf(szPath + tPathLen, MAX_PATH - tPathLen, _T("\\%s"), dat->lpszFileName);
if ((pImgext = gg_img_hasextension(szPath)) == NULL)
- pImgext = szPath + _tcslen(szPath);
+ pImgext = szPath + mir_tstrlen(szPath);
_tcsncpy_s(imgext, pImgext, _TRUNCATE);
for (i = 1; ; ++i)
{