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/AvatarHistory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/AvatarHistory/src/AvatarHistory.cpp') diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp index 77a60eead3..cd3489212b 100644 --- a/plugins/AvatarHistory/src/AvatarHistory.cpp +++ b/plugins/AvatarHistory/src/AvatarHistory.cpp @@ -75,7 +75,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) static INT_PTR GetCachedAvatar(WPARAM wParam, LPARAM lParam) { TCHAR hash[128]; - lstrcpyn(hash, (TCHAR *) lParam, sizeof(hash)); + mir_tstrncpy(hash, (TCHAR *) lParam, sizeof(hash)); ConvertToFilename(hash, sizeof(hash)); return (INT_PTR) GetCachedAvatar((char *) wParam, hash); } @@ -169,13 +169,13 @@ static int AvatarChanged(WPARAM hContact, LPARAM lParam) else { // See if we already have the avatar TCHAR hash[128]; - lstrcpyn(hash, avatar->hash, sizeof(hash)); + mir_tstrncpy(hash, avatar->hash, sizeof(hash)); ConvertToFilename(hash, sizeof(hash)); TCHAR *file = GetCachedAvatar(proto, hash); if (file != NULL) { - lstrcpyn(history_filename, file, SIZEOF(history_filename)); + mir_tstrncpy(history_filename, file, SIZEOF(history_filename)); mir_free(file); } else { -- cgit v1.2.3