summaryrefslogtreecommitdiff
path: root/plugins/YahooGroups
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YahooGroups')
-rw-r--r--plugins/YahooGroups/src/services.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/YahooGroups/src/services.cpp b/plugins/YahooGroups/src/services.cpp
index 645bae1282..863a4648e9 100644
--- a/plugins/YahooGroups/src/services.cpp
+++ b/plugins/YahooGroups/src/services.cpp
@@ -126,8 +126,8 @@ void CreateGroup(char *group)
*p = 0;
if (strlen(buffer) > 0)
{
- strncat(buffer, "\\", sizeof(buffer));
- strncat(buffer, sub, sizeof(buffer));
+ strncat(buffer, "\\", SIZEOF(buffer) - mir_strlen(buffer));
+ strncat(buffer, sub, SIZEOF(buffer) - mir_strlen(buffer));
}
else{
strncpy_s(buffer, sub, _TRUNCATE);
@@ -146,8 +146,8 @@ void CreateGroup(char *group)
{
if (strlen(buffer) > 0)
{
- strncat(buffer, "\\", sizeof(buffer));
- strncat(buffer, sub, sizeof(buffer));
+ strncat(buffer, "\\", SIZEOF(buffer) - mir_strlen(buffer));
+ strncat(buffer, sub, SIZEOF(buffer) - mir_strlen(buffer));
}
else{
strncpy_s(buffer, sub, _TRUNCATE);