From b7c74cd5b22618d544a3f4ae124985d4837e3a22 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jun 2015 22:12:13 +0000 Subject: new mir_snprintf templates without SIZEOF git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YahooGroups/src/services.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/YahooGroups/src/services.cpp') diff --git a/plugins/YahooGroups/src/services.cpp b/plugins/YahooGroups/src/services.cpp index f13cd473ff..fe79736be4 100644 --- a/plugins/YahooGroups/src/services.cpp +++ b/plugins/YahooGroups/src/services.cpp @@ -53,7 +53,7 @@ void ReadAvailableGroups() while (ok) { - mir_snprintf(tmp, SIZEOF(tmp), "%d", index); + mir_snprintf(tmp, "%d", index); GetStringFromDatabase(NULL, CLIST_GROUPS, tmp, NULL, group, sizeof(group)); if (mir_strlen(group) > 0) { @@ -76,7 +76,7 @@ int GetNextGroupIndex() while (!found) { - mir_snprintf(tmp, SIZEOF(tmp), "%d", index++); + mir_snprintf(tmp, "%d", index++); if (GetStringFromDatabase(NULL, CLIST_GROUPS, tmp, NULL, buffer, sizeof(buffer))) { @@ -97,7 +97,7 @@ void AddNewGroup(const char *newGroup) *group = 1; strncpy_s((group + 1), (SIZEOF(group) - 1), newGroup, _TRUNCATE); - mir_snprintf(tmp, SIZEOF(tmp), "%d", index); + mir_snprintf(tmp, "%d", index); const int MAX_SIZE = 1024; wchar_t wide[MAX_SIZE] = {0}; *wide = 1; -- cgit v1.2.3