diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:34:50 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:34:50 +0000 |
commit | adb4baf7687be1f06c65c01232706911ec11cd53 (patch) | |
tree | 4554821dcaa3f892dda699cd8114c4b2870d2bcb /plugins | |
parent | 9397b5e13db37973b972c888237deedc6b798959 (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')
-rw-r--r-- | plugins/Scriver/src/msglog.cpp | 2 |
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;
}
|