VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-09 05:38:35 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:20:45 +0100
commit9d027b02b9723493f66b94bba648e20d48e73b6f (patch)
tree52d5d04929fe83fdea01ab0ff1ea3754b6be4efd /src/Format
parent899a22b840316d54a9563726e78f7a201a6702ef (diff)
downloadVeraCrypt-9d027b02b9723493f66b94bba648e20d48e73b6f.tar.gz
VeraCrypt-9d027b02b9723493f66b94bba648e20d48e73b6f.zip
Static Code Analysis : fix usage of strncpy and sscanf.
Diffstat (limited to 'src/Format')
-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 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);
}