diff options
Diffstat (limited to 'src/dlls/mscoree/mscoree.cpp')
-rw-r--r-- | src/dlls/mscoree/mscoree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dlls/mscoree/mscoree.cpp b/src/dlls/mscoree/mscoree.cpp index 42c9ade480..712fb89e68 100644 --- a/src/dlls/mscoree/mscoree.cpp +++ b/src/dlls/mscoree/mscoree.cpp @@ -1142,7 +1142,7 @@ STDAPI LoadLibraryShimInternal(LPCWSTR szDllName, LPCWSTR szVersion, LPVOID pvRe if (!PAL_GetPALDirectoryW(szDllPath, _MAX_PATH)) { IfFailGo(HRESULT_FROM_GetLastError()); } - wcsncat(szDllPath, szDllName, _MAX_PATH - wcslen(szDllPath)); + wcsncat_s(szDllPath, _MAX_PATH+1, szDllName, _MAX_PATH - wcslen(szDllPath)); if ((*phModDll = WszLoadLibrary(szDllPath)) == NULL) IfFailGo(HRESULT_FROM_GetLastError()); |