Module: wine Branch: master Commit: 98580b5d36577443ae473ab20a602d0a59c29c21 URL: http://source.winehq.org/git/wine.git/?a=commit;h=98580b5d36577443ae473ab20a...
Author: Adam Martinson amartinson@codeweavers.com Date: Thu Jun 16 21:43:54 2011 -0500
msxml3: SysAllocString*() automatically allocates a terminating NULL.
---
dlls/msxml3/node.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index a2e4d6f..681cd44 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -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')