From a9102b4c72aedfe634afdb91b21679fc350746f0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 16 May 2015 18:30:05 +0000 Subject: fix for strncat use git-svn-id: http://svn.miranda-ng.org/main/trunk@13639 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Non-IM Contact/src/contactinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Non-IM Contact') 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 - strncat(tooltip, line, strlen(line) - strlen("\r\n")); + strncat(tooltip, line, SIZEOF(tooltip) - mir_strlen(tooltip)); } else if (!strncmp(line, "Icon=", strlen("Icon="))) { i = (int)strlen("Icon="); -- cgit v1.2.3