summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:33:11 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:33:11 +0000
commit9397b5e13db37973b972c888237deedc6b798959 (patch)
tree0dbf7bc02e7093ad4c3bc882203a6af3086757cc /plugins
parentd4de8d429f0a441e49fa621a8d484a073df1f88b (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13641 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Ping/src/log.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Ping/src/log.cpp b/plugins/Ping/src/log.cpp
index cc9a166947..c6cc40a66f 100644
--- a/plugins/Ping/src/log.cpp
+++ b/plugins/Ping/src/log.cpp
@@ -34,7 +34,7 @@ INT_PTR GetLogFilename(WPARAM wParam, LPARAM lParam) {
TCHAR *filename = (TCHAR *)lParam;
if (db_get_ts(0, PLUG, "LogFilename", &dbv)) {
CallService(MS_DB_GETPROFILEPATHT, wParam, (LPARAM)filename);
- mir_tstrncat(filename, _T("\\ping_log.txt"), _TRUNCATE);
+ mir_tstrncat(filename, _T("\\ping_log.txt"), wParam - mir_tstrlen(filename));
}
else {
mir_tstrncpy(filename, dbv.ptszVal, wParam);