diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 19:08:03 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 19:08:03 +0000 |
commit | 4425ddb9299501e3478659b49f230a36323dca62 (patch) | |
tree | d73fd39000cfdf6a1e7e7926e1a302b4f3bd987a /plugins/YahooGroups/src | |
parent | c49014bbfa57191cd4c52be5d01690a6eef778ac (diff) |
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13651 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YahooGroups/src')
-rw-r--r-- | plugins/YahooGroups/src/services.cpp | 8 |
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);
|