diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-07-09 05:38:35 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-11-08 23:20:45 +0100 |
commit | 9d027b02b9723493f66b94bba648e20d48e73b6f (patch) | |
tree | 52d5d04929fe83fdea01ab0ff1ea3754b6be4efd /src/Format/Tcformat.c | |
parent | 899a22b840316d54a9563726e78f7a201a6702ef (diff) | |
download | VeraCrypt-9d027b02b9723493f66b94bba648e20d48e73b6f.tar.gz VeraCrypt-9d027b02b9723493f66b94bba648e20d48e73b6f.zip |
Static Code Analysis : fix usage of strncpy and sscanf.
Diffstat (limited to 'src/Format/Tcformat.c')
-rw-r--r-- | src/Format/Tcformat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index 18dd23ce..0074a169 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -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);
}
|