summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 17:40:01 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 17:40:01 +0000
commitaf6cd836a72997b86612dc38adfebf417e171a93 (patch)
treea91440ef21f66a2bca3dc1e42f620227a8e55728
parentf869380300b7f278000ac65ee0f8869fe9f8d520 (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13627 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/FileAsMessage/src/dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/FileAsMessage/src/dialog.cpp b/plugins/FileAsMessage/src/dialog.cpp
index 58dfb1fad2..ca8a746957 100644
--- a/plugins/FileAsMessage/src/dialog.cpp
+++ b/plugins/FileAsMessage/src/dialog.cpp
@@ -429,7 +429,7 @@ void FILEECHO::incomeRequest(char *param)
char *p = strchr(param, '?');
if (p == NULL) return; *p++ = 0;
CallService(MS_FILE_GETRECEIVEDFILESFOLDER, hContact, (LPARAM)buf);
- mir_strncat(buf, param, SIZEOF(buf));
+ mir_strncat(buf, param, SIZEOF(buf) - mir_strlen(buf));
free(filename);
filename = mir_strdup(buf);
// p == &c