[SYSSETUP]

Fix buffer overrun

CID #716146

svn path=/trunk/; revision=62659
This commit is contained in:
Pierre Schweitzer 2014-04-06 15:31:06 +00:00
parent 7c66fc782d
commit cf4a5c8d11

View file

@ -45,11 +45,11 @@ InitializeSetupActionLog (BOOL bDeleteOldLogFile)
{ {
wcsncat(szFileName, wcsncat(szFileName,
L"\\", L"\\",
MAX_PATH); (sizeof(szFileName) / sizeof(szFileName[0])) - wcslen(szFileName));
} }
wcsncat(szFileName, wcsncat(szFileName,
L"setuplog.txt", L"setuplog.txt",
MAX_PATH); (sizeof(szFileName) / sizeof(szFileName[0])) - wcslen(szFileName));
if (bDeleteOldLogFile) if (bDeleteOldLogFile)
{ {