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/ListeningTo/src/listeningto.cpp | 4 ++-- plugins/ListeningTo/src/players/generic.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/ListeningTo') diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp index 5258ca89af..9061969c68 100644 --- a/plugins/ListeningTo/src/listeningto.cpp +++ b/plugins/ListeningTo/src/listeningto.cpp @@ -220,7 +220,7 @@ void RegisterProtocol(char *proto, TCHAR *account) strncpy(proto_items[id].proto, proto, SIZEOF(proto_items[id].proto)); proto_items[id].proto[SIZEOF(proto_items[id].proto)-1] = 0; - lstrcpyn(proto_items[id].account, account, SIZEOF(proto_items[id].account)); + mir_tstrncpy(proto_items[id].account, account, SIZEOF(proto_items[id].account)); proto_items[id].hMenu = NULL; proto_items[id].old_xstatus = 0; @@ -240,7 +240,7 @@ int AccListChanged(WPARAM wParam, LPARAM lParam) { if (wParam == PRAC_UPGRADED || wParam == PRAC_CHANGED) { - lstrcpyn(info->account, proto->tszAccountName, SIZEOF(info->account)); + mir_tstrncpy(info->account, proto->tszAccountName, SIZEOF(info->account)); TCHAR text[512]; mir_sntprintf(text, SIZEOF(text), TranslateT("Send to %s"), info->account); diff --git a/plugins/ListeningTo/src/players/generic.cpp b/plugins/ListeningTo/src/players/generic.cpp index ff2abd3239..ca44c71f9c 100644 --- a/plugins/ListeningTo/src/players/generic.cpp +++ b/plugins/ListeningTo/src/players/generic.cpp @@ -34,7 +34,7 @@ int m_log(const TCHAR *function, const TCHAR *fmt, ...) mir_sntprintf(text, MAX_REGS(text) - 10, _T("[%08u - %08u] [%s] "), GetCurrentThreadId(), GetTickCount(), function); - len = lstrlen(text); + len = mir_tstrlen(text); va_start(va, fmt); mir_vsntprintf(&text[len], MAX_REGS(text) - len, fmt, va); -- cgit v1.2.3