diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:05:13 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:05:13 +0000 |
commit | e425f74c45bf3d947f625599d1464c5591544487 (patch) | |
tree | dc4e22e8d873e29dfced357b76c84840f1919e51 | |
parent | 20d319ca66b1765ab7db9ff4905e294017ce7151 (diff) |
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/FloatingContacts/src/filedrop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|