summaryrefslogtreecommitdiff
path: root/src/mir_core/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_core/logger.cpp')
-rw-r--r--src/mir_core/logger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/logger.cpp b/src/mir_core/logger.cpp
index 4f4aa1a353..e129f48765 100644
--- a/src/mir_core/logger.cpp
+++ b/src/mir_core/logger.cpp
@@ -115,7 +115,7 @@ MIR_CORE_DLL(HANDLE) mir_createLog(const char* pszName, const TCHAR *ptszDescr,
FILE *fp = _tfopen(ptszFile, _T("ab"));
if (fp == NULL) {
TCHAR tszPath[MAX_PATH];
- _tcsncpy_s(tszPath, SIZEOF(tszPath), ptszFile, _TRUNCATE);
+ _tcsncpy_s(tszPath, ptszFile, _TRUNCATE);
CreatePathToFileT(tszPath);
}
else fclose(fp);