From 9d027b02b9723493f66b94bba648e20d48e73b6f Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 9 Jul 2014 05:38:35 +0200 Subject: Static Code Analysis : fix usage of strncpy and sscanf. --- src/Format/Tcformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Format') 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); } -- cgit v1.2.3