From 36472b00443e23acf28b0dd26ddc2c2e6216d909 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Tue, 9 Dec 2014 00:59:27 +0000 Subject: code cleanup over mir_sntprintf + small bug fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11295 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_blind/src/init.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Clist_blind') diff --git a/plugins/Clist_blind/src/init.cpp b/plugins/Clist_blind/src/init.cpp index dd5a2c6cbe..369a665175 100644 --- a/plugins/Clist_blind/src/init.cpp +++ b/plugins/Clist_blind/src/init.cpp @@ -494,7 +494,7 @@ TCHAR *GetProtoName(struct ClcContact *item) { #ifdef UNICODE CallProtoService(item->proto, PS_GETNAME, sizeof(description),(LPARAM) description); - mir_sntprintf(proto_name, MAX_REGS(proto_name), L"%S", description); + mir_sntprintf(proto_name, SIZEOF(proto_name), L"%S", description); #else CallProtoService(item->proto, PS_GETNAME, sizeof(proto_name),(LPARAM) proto_name); #endif @@ -578,9 +578,9 @@ void RebuildEntireListInternal(HWND hwnd, ClcData *tmp_dat, BOOL call_orig) if (szCounts[0] != '\0') { #ifdef UNICODE - mir_sntprintf(count, MAX_REGS(count), L"%S ", szCounts); + mir_sntprintf(count, SIZEOF(count), L"%S ", szCounts); #else - mir_sntprintf(count, MAX_REGS(count), "%s ", szCounts); + mir_sntprintf(count, SIZEOF(count), "%s ", szCounts); #endif } else -- cgit v1.2.3