mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 03:18:26 -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