From 688f55ba998c19304a29727c910504903f4cc49a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Nov 2014 18:51:36 +0000 Subject: lstr* replacements git-svn-id: http://svn.miranda-ng.org/main/trunk@11176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AvatarHistory/src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/AvatarHistory/src/utils.cpp') diff --git a/plugins/AvatarHistory/src/utils.cpp b/plugins/AvatarHistory/src/utils.cpp index 57e30f163a..2c18e2edea 100644 --- a/plugins/AvatarHistory/src/utils.cpp +++ b/plugins/AvatarHistory/src/utils.cpp @@ -86,7 +86,7 @@ int GetUIDFromHContact(MCONTACT contact, TCHAR* uinout, int uinout_len) cinfo.dwFlag = CNF_UNIQUEID | CNF_TCHAR; if (CallService(MS_CONTACT_GETCONTACTINFO, 0, (LPARAM)&cinfo) == 0) { if (cinfo.type == CNFT_ASCIIZ) { - lstrcpyn(uinout, cinfo.pszVal, uinout_len); + mir_tstrncpy(uinout, cinfo.pszVal, uinout_len); // It is up to us to free the string // The catch? We need to use Miranda's free(), not our CRT's :) mir_free(cinfo.pszVal); @@ -101,7 +101,7 @@ int GetUIDFromHContact(MCONTACT contact, TCHAR* uinout, int uinout_len) else found = false; if (!found) - lstrcpyn(uinout, TranslateT("Unknown UIN"), uinout_len); + mir_tstrncpy(uinout, TranslateT("Unknown UIN"), uinout_len); return 0; } @@ -217,7 +217,7 @@ TCHAR * GetCachedAvatar(char *proto, TCHAR *hash) do { - size_t len = lstrlen(finddata.cFileName); + size_t len = mir_tstrlen(finddata.cFileName); if (len > 4 && (!lstrcmpi(&finddata.cFileName[len-4], _T(".png")) || !lstrcmpi(&finddata.cFileName[len-4], _T(".bmp")) -- cgit v1.2.3