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

Alexandre Julliard julliard at winehq.org
Fri Jun 17 13:13:47 CDT 2011


Module: wine
Branch: master
Commit: 98580b5d36577443ae473ab20a602d0a59c29c21
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=98580b5d36577443ae473ab20a602d0a59c29c21

Author: Adam Martinson <amartinson at 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')




More information about the wine-cvs mailing list