Author: pschweitzer
Date: Sun Apr 6 15:31:06 2014
New Revision: 62659
URL:
http://svn.reactos.org/svn/reactos?rev=62659&view=rev
Log:
[SYSSETUP]
Fix buffer overrun
CID #716146
Modified:
trunk/reactos/dll/win32/syssetup/logfile.c
Modified: trunk/reactos/dll/win32/syssetup/logfile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/logfile…
==============================================================================
--- trunk/reactos/dll/win32/syssetup/logfile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/syssetup/logfile.c [iso-8859-1] Sun Apr 6 15:31:06 2014
@@ -45,11 +45,11 @@
{
wcsncat(szFileName,
L"\\",
- MAX_PATH);
+ (sizeof(szFileName) / sizeof(szFileName[0])) - wcslen(szFileName));
}
wcsncat(szFileName,
L"setuplog.txt",
- MAX_PATH);
+ (sizeof(szFileName) / sizeof(szFileName[0])) - wcslen(szFileName));
if (bDeleteOldLogFile)
{