dbertoni 2002/10/02 18:30:30
Modified: c/src/PlatformSupport StdBinInputStream.cpp
Log:
Temporary fix for bugzilla 13190.
Revision Changes Path
1.17 +6 -2 xml-xalan/c/src/PlatformSupport/StdBinInputStream.cpp
Index: StdBinInputStream.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/StdBinInputStream.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- StdBinInputStream.cpp 22 Aug 2002 16:06:37 -0000 1.16
+++ StdBinInputStream.cpp 3 Oct 2002 01:30:30 -0000 1.17
@@ -116,6 +116,7 @@
{
return 0;
}
+#if 0
else if (m_blockingRead == true)
{
unsigned int i = 0;
@@ -138,14 +139,17 @@
return i;
}
+#endif
else
{
#if !defined(XALAN_OLD_STREAM_HEADERS)
#if defined(XALAN_OLD_STYLE_CASTS)
- return m_stream.readsome((char*)toFill, maxToRead);
+ m_stream.read((char*)toFill, maxToRead);
#else
- return m_stream.readsome(reinterpret_cast<char*>(toFill), maxToRead);
+ m_stream.read(reinterpret_cast<char*>(toFill), maxToRead);
#endif
+
+ return m_stream.gcount();
#else
m_stream.read(toFill, maxToRead);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]