From e425f74c45bf3d947f625599d1464c5591544487 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 16 May 2015 18:05:13 +0000 Subject: fix for strncat use git-svn-id: http://svn.miranda-ng.org/main/trunk@13633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FloatingContacts/src/filedrop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/FloatingContacts/src/filedrop.cpp b/plugins/FloatingContacts/src/filedrop.cpp index 586b1419aa..7a18009333 100644 --- a/plugins/FloatingContacts/src/filedrop.cpp +++ b/plugins/FloatingContacts/src/filedrop.cpp @@ -289,7 +289,7 @@ static void SaveFiles( char *szItem, char **ppFiles, int *pnCount ) if ( NULL != strstr( szFile, "*.*" )) { szFile[ strlen( szFile ) - 3 ] = '\0'; - strncat( szFile, fd.cFileName, MAX_PATH - 1); + strncat(szFile, fd.cFileName, nSize - mir_strlen(szFile)); } ppFiles[ *pnCount ] = szFile; -- cgit v1.2.3