VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format/Tcformat.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-09 03:38:35 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 22:20:45 (GMT)
commit9d027b02b9723493f66b94bba648e20d48e73b6f (patch)
tree52d5d04929fe83fdea01ab0ff1ea3754b6be4efd /src/Format/Tcformat.c
parent899a22b840316d54a9563726e78f7a201a6702ef (diff)
downloadVeraCrypt-9d027b02b9723493f66b94bba648e20d48e73b6f.zip
VeraCrypt-9d027b02b9723493f66b94bba648e20d48e73b6f.tar.gz
Static Code Analysis : fix usage of strncpy and sscanf.
Diffstat (limited to 'src/Format/Tcformat.c')
-rw-r--r--src/Format/Tcformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c
index 18dd23c..0074a16 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);
}