You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/01/27 21:38:01 UTC
cvs commit: xml-xalan/c/src/PlatformSupport XalanOutputStream.cpp
dbertoni 01/01/27 12:38:01
Modified: c/src/PlatformSupport XalanOutputStream.cpp
Log:
Fixed bug in call to write() with XALAN_OLD_STYLE_CASTS.
Revision Changes Path
1.7 +1 -1 xml-xalan/c/src/PlatformSupport/XalanOutputStream.cpp
Index: XalanOutputStream.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XalanOutputStream.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XalanOutputStream.cpp 2000/12/21 04:04:38 1.6
+++ XalanOutputStream.cpp 2001/01/27 20:38:01 1.7
@@ -372,7 +372,7 @@
if (theSize > 0)
{
#if defined(XALAN_OLD_STYLE_CASTS)
- write((const char*)theProlog[0], theProlog.size());
+ write((const char*)&theProlog[0], theProlog.size());
#else
write(reinterpret_cast<const char*>(&theProlog[0]), theProlog.size());
#endif