mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 03:18:26 -06:00
Windows: replace insecure wcscpy/wcscat/strcpy runtime functions with secure equivalents
This fixed failure to build driver for ARM64 with latest VS 2019
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "InitDataArea.h"
|
||||
#include "ExpandVolume.h"
|
||||
#include "Resource.h"
|
||||
#include <strsafe.h>
|
||||
|
||||
#ifndef SRC_POS
|
||||
#define SRC_POS (__FUNCTION__ ":" TC_TO_STRING(__LINE__))
|
||||
@@ -526,7 +527,7 @@ static int ExpandVolume (HWND hwndDlg, wchar_t *lpszVolume, Password *pVolumePas
|
||||
|
||||
if (bDevice == FALSE)
|
||||
{
|
||||
wcscpy (szCFDevice, szDiskFile);
|
||||
StringCchCopyW (szCFDevice, ARRAYSIZE(szCFDevice), szDiskFile);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user