Author: ekohl
Date: Sun Feb 17 12:35:47 2013
New Revision: 58329
URL:
http://svn.reactos.org/svn/reactos?rev=58329&view=rev
Log:
[MSGINA]
Fix an off-by-one bug!
Modified:
trunk/reactos/dll/win32/msgina/msgina.c
Modified: trunk/reactos/dll/win32/msgina/msgina.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/msgina.c?…
==============================================================================
--- trunk/reactos/dll/win32/msgina/msgina.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/msgina.c [iso-8859-1] Sun Feb 17 12:35:47 2013
@@ -470,7 +470,7 @@
pProfile->pszProfile = ProfilePath;
lpEnvironment = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
- (wcslen(pgContext->Domain)+ 14) * sizeof(WCHAR));
+ (wcslen(pgContext->Domain)+ 14 + 1) * sizeof(WCHAR));
if (!lpEnvironment)
{
WARN("HeapAlloc() failed\n");