1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 19:08:26 -06:00

Static Code Analysis : fix usage of strncpy and sscanf.

This commit is contained in:
Mounir IDRASSI
2014-07-09 05:38:35 +02:00
parent 899a22b840
commit 9d027b02b9
3 changed files with 8 additions and 8 deletions

View File

@@ -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);
}