summaryrefslogtreecommitdiff
path: root/plugins/Scriver
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:34:50 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:34:50 +0000
commitadb4baf7687be1f06c65c01232706911ec11cd53 (patch)
tree4554821dcaa3f892dda699cd8114c4b2870d2bcb /plugins/Scriver
parent9397b5e13db37973b972c888237deedc6b798959 (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13642 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver')
-rw-r--r--plugins/Scriver/src/msglog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp
index 2afc1f3577..7f87d454f8 100644
--- a/plugins/Scriver/src/msglog.cpp
+++ b/plugins/Scriver/src/msglog.cpp
@@ -429,7 +429,7 @@ TCHAR* TimestampToString(DWORD dwFlags, time_t check, int mode)
}
if (format[0] != '\0') {
tmi.printTimeStamp(NULL, check, format, str, SIZEOF(str), 0);
- _tcsncat(szResult, str, 500);
+ _tcsncat(szResult, str, SIZEOF(szResult) - mir_tstrlen(szResult));
}
return szResult;
}