summaryrefslogtreecommitdiff
path: root/plugins/Non-IM Contact
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:30:05 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:30:05 +0000
commita9102b4c72aedfe634afdb91b21679fc350746f0 (patch)
tree29b6b03dc4977146f0ff4e27205cac02bf285487 /plugins/Non-IM Contact
parentec8dc5efedd7db322a011caedf680f19a942b708 (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13639 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Non-IM Contact')
-rw-r--r--plugins/Non-IM Contact/src/contactinfo.cpp2
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=");