[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: cvs commit: xml-xerces/c/src/xercesc/internal BinMemOutputStream.cpp
From: peiyongz () apache ! org
Date: 2004-10-26 14:50:13
Message-ID: 20041026145013.95926.qmail () minotaur ! apache ! org
[Download RAW message or body]
peiyongz 2004/10/26 07:50:13
Modified: c/src/xercesc/internal BinMemOutputStream.cpp
Log:
Reinitialize buffer after expansion
Revision Changes Path
1.6 +6 -1 xml-xerces/c/src/xercesc/internal/BinMemOutputStream.cpp
Index: BinMemOutputStream.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/BinMemOutputStream.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- BinMemOutputStream.cpp 8 Sep 2004 13:56:13 -0000 1.5
+++ BinMemOutputStream.cpp 26 Oct 2004 14:50:13 -0000 1.6
@@ -17,6 +17,9 @@
/*
* $Id$
* $Log$
+ * Revision 1.6 2004/10/26 14:50:13 peiyongz
+ * Reinitialize buffer after expansion
+ *
* Revision 1.5 2004/09/08 13:56:13 peiyongz
* Apache License Version 2.0
*
@@ -119,6 +122,8 @@
(
(newCap+4) * sizeof(XMLByte)
);
+
+ memset(newBuf, 0, (newCap+4) * sizeof(XMLByte));
// Copy over the old stuff
memcpy(newBuf, fDataBuf, fCapacity * sizeof(XMLByte) + 4);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic