mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-01-03 12:18:11 -06:00
Static Code Analysis : fix usage of strncpy and sscanf.
This commit is contained in:
@@ -1699,7 +1699,7 @@ static BOOL GetDevicePathForHiddenOS (void)
|
||||
|
||||
try
|
||||
{
|
||||
strncpy (szFileName, BootEncObj->GetPartitionForHiddenOS().DevicePath.c_str(), sizeof(szFileName));
|
||||
strncpy (szFileName, BootEncObj->GetPartitionForHiddenOS().DevicePath.c_str(), sizeof(szFileName) - 1);
|
||||
|
||||
CreateFullVolumePath (szDiskFile, szFileName, &tmpbDevice);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user