summaryrefslogtreecommitdiff
path: root/plugins/YahooGroups
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-04 22:12:13 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-04 22:12:13 +0000
commitb7c74cd5b22618d544a3f4ae124985d4837e3a22 (patch)
tree468d9610a590685322ad2159a9bd2d9e2ba83f89 /plugins/YahooGroups
parent7de513f180c429859e246d1033d745b394e1fc28 (diff)
new mir_snprintf templates without SIZEOF
git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YahooGroups')
-rw-r--r--plugins/YahooGroups/src/services.cpp6
-rw-r--r--plugins/YahooGroups/src/utils.cpp4
2 files changed, 5 insertions, 5 deletions
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;
diff --git a/plugins/YahooGroups/src/utils.cpp b/plugins/YahooGroups/src/utils.cpp
index 5da8431f39..9f6f63d865 100644
--- a/plugins/YahooGroups/src/utils.cpp
+++ b/plugins/YahooGroups/src/utils.cpp
@@ -102,12 +102,12 @@ char *BinToHex(int size, PBYTE data)
int maxSize = size * 2 + HEX_SIZE + 1;
szresult = (char *) new char[ maxSize ];
memset(szresult, 0, maxSize);
- mir_snprintf(buffer, SIZEOF(buffer), "%0*X", HEX_SIZE, size);
+ mir_snprintf(buffer, "%0*X", HEX_SIZE, size);
mir_strcpy(szresult, buffer);
int i;
for (i = 0; i < size; i++)
{
- mir_snprintf(buffer, SIZEOF(buffer), "%02X", data[i]);
+ mir_snprintf(buffer, "%02X", data[i]);
mir_strcpy(szresult + (HEX_SIZE + i * 2), buffer);
}
return szresult;