diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-02 05:19:23 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-02 05:19:23 +0000 |
commit | 114f83d5d8a73b3f1435e09b1d91aff843e4ce15 (patch) | |
tree | 0805188bf6bcf5749d1e76d5d1e73ccb6cf41cc4 /plugins/YahooGroups | |
parent | 6e2b6b31bae6d69bff5271451e73eb08637b8118 (diff) |
mir_snprintf(..., "%s", ...) -> strncpy_s(...)
build fix to prevous commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@11212 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YahooGroups')
-rw-r--r-- | plugins/YahooGroups/src/services.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/YahooGroups/src/services.cpp b/plugins/YahooGroups/src/services.cpp index d0de915c21..645bae1282 100644 --- a/plugins/YahooGroups/src/services.cpp +++ b/plugins/YahooGroups/src/services.cpp @@ -93,8 +93,9 @@ void AddNewGroup(char *newGroup) char tmp[128];
char group[1024];
+
*group = 1;
- mir_snprintf((group + 1), (SIZEOF(group) - 1), "%s", newGroup);
+ strncpy_s((group + 1), (SIZEOF(group) - 1), newGroup, _TRUNCATE);
mir_snprintf(tmp, SIZEOF(tmp), "%d", index);
const int MAX_SIZE = 1024;
@@ -129,7 +130,7 @@ void CreateGroup(char *group) strncat(buffer, sub, sizeof(buffer));
}
else{
- mir_snprintf(buffer, SIZEOF(buffer), "%s", sub);
+ strncpy_s(buffer, sub, _TRUNCATE);
}
if (!availableGroups.Contains(buffer))
@@ -149,7 +150,7 @@ void CreateGroup(char *group) strncat(buffer, sub, sizeof(buffer));
}
else{
- mir_snprintf(buffer, SIZEOF(buffer), "%s", sub);
+ strncpy_s(buffer, sub, _TRUNCATE);
}
if (!availableGroups.Contains(buffer))
|