summaryrefslogtreecommitdiff
path: root/plugins/YahooGroups
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 04:50:22 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 04:50:22 +0000
commit41a7300678e4bb3cd703e2c236e57af4a31962c7 (patch)
tree36318f807498cf15b405eda5c451fd37bfe1b675 /plugins/YahooGroups
parent97e0ada5c34d6e7eba1cf47a8d8ac029197be6de (diff)
mir_snprintf(..., sizeof() -> SIZEOF(), ...)
small fixs cleanups git-svn-id: http://svn.miranda-ng.org/main/trunk@11188 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YahooGroups')
-rw-r--r--plugins/YahooGroups/src/services.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/YahooGroups/src/services.cpp b/plugins/YahooGroups/src/services.cpp
index b44cfc53f5..d0de915c21 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, SIZEOF(tmp), "%d", index);
GetStringFromDatabase(NULL, CLIST_GROUPS, tmp, NULL, group, sizeof(group));
if (strlen(group) > 0)
{
@@ -76,7 +76,7 @@ int GetNextGroupIndex()
while (!found)
{
- mir_snprintf(tmp, sizeof(tmp), "%d", index++);
+ mir_snprintf(tmp, SIZEOF(tmp), "%d", index++);
if (GetStringFromDatabase(NULL, CLIST_GROUPS, tmp, NULL, buffer, sizeof(buffer)))
{
@@ -91,12 +91,12 @@ void AddNewGroup(char *newGroup)
{
int index = GetNextGroupIndex();
- char tmp[128] = {0};
- char group[1024] = {0};
+ char tmp[128];
+ char group[1024];
*group = 1;
- mir_snprintf(group + 1, sizeof(group) - 1, "%s", newGroup);
+ mir_snprintf((group + 1), (SIZEOF(group) - 1), "%s", newGroup);
- mir_snprintf(tmp, sizeof(tmp), "%d", index);
+ mir_snprintf(tmp, SIZEOF(tmp), "%d", index);
const int MAX_SIZE = 1024;
wchar_t wide[MAX_SIZE] = {0};
*wide = 1;
@@ -129,7 +129,7 @@ void CreateGroup(char *group)
strncat(buffer, sub, sizeof(buffer));
}
else{
- mir_snprintf(buffer, sizeof(buffer), "%s", sub);
+ mir_snprintf(buffer, SIZEOF(buffer), "%s", sub);
}
if (!availableGroups.Contains(buffer))
@@ -149,7 +149,7 @@ void CreateGroup(char *group)
strncat(buffer, sub, sizeof(buffer));
}
else{
- mir_snprintf(buffer, sizeof(buffer), "%s", sub);
+ mir_snprintf(buffer, SIZEOF(buffer), "%s", sub);
}
if (!availableGroups.Contains(buffer))