diff options
Diffstat (limited to 'src/mir_core/path.cpp')
-rw-r--r-- | src/mir_core/path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/path.cpp b/src/mir_core/path.cpp index fbc3cff04b..d4148f457d 100644 --- a/src/mir_core/path.cpp +++ b/src/mir_core/path.cpp @@ -67,7 +67,7 @@ MIR_CORE_DLL(int) PathToAbsolute(const char *pSrc, char *pOut, const char *base) char buf[MAX_PATH];
if (pSrc[0] < ' ')
- return mir_snprintf(pOut, MAX_PATH, "%s", pSrc);
+ strncpy_s(pOut, MAX_PATH, pSrc, _TRUNCATE);
if (PathIsAbsolute(pSrc))
return GetFullPathNameA(pSrc, MAX_PATH, pOut, NULL);
|