diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:30:05 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:30:05 +0000 |
commit | a9102b4c72aedfe634afdb91b21679fc350746f0 (patch) | |
tree | 29b6b03dc4977146f0ff4e27205cac02bf285487 | |
parent | ec8dc5efedd7db322a011caedf680f19a942b708 (diff) |
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13639 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/Non-IM Contact/src/contactinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Non-IM Contact/src/contactinfo.cpp b/plugins/Non-IM Contact/src/contactinfo.cpp index 4e16404b4b..eaac4b706b 100644 --- a/plugins/Non-IM Contact/src/contactinfo.cpp +++ b/plugins/Non-IM Contact/src/contactinfo.cpp @@ -536,7 +536,7 @@ INT_PTR ImportContacts(WPARAM wParam, LPARAM lParam) fgets(line, 2000, file);
}
// the line that has the </tooltip>
- strncat(tooltip, line, strlen(line) - strlen("</tooltip>\r\n"));
+ strncat(tooltip, line, SIZEOF(tooltip) - mir_strlen(tooltip));
}
else if (!strncmp(line, "Icon=", strlen("Icon="))) {
i = (int)strlen("Icon=");
|