From adb4baf7687be1f06c65c01232706911ec11cd53 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 16 May 2015 18:34:50 +0000 Subject: fix for strncat use git-svn-id: http://svn.miranda-ng.org/main/trunk@13642 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/msglog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Scriver/src/msglog.cpp') 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; } -- cgit v1.2.3