Commit 98580b5d authored by Adam Martinson's avatar Adam Martinson Committed by Alexandre Julliard

msxml3: SysAllocString*() automatically allocates a terminating NULL.

parent f6b0ce3c
......@@ -858,7 +858,7 @@ BSTR EnsureCorrectEOL(BSTR sInput)
if(nNum > 0)
{
int nPlace = 0;
sNew = SysAllocStringLen(NULL, nLen + nNum+1);
sNew = SysAllocStringLen(NULL, nLen + nNum);
for(i=0; i < nLen; i++)
{
if(sInput[i] == '\n')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment