You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2009/06/30 14:01:12 UTC

svn commit: r789688 - /xerces/c/trunk/src/xercesc/framework/StdOutFormatTarget.cpp

Author: amassari
Date: Tue Jun 30 12:01:12 2009
New Revision: 789688

URL: http://svn.apache.org/viewvc?rev=789688&view=rev
Log:
Fix warning

Modified:
    xerces/c/trunk/src/xercesc/framework/StdOutFormatTarget.cpp

Modified: xerces/c/trunk/src/xercesc/framework/StdOutFormatTarget.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/StdOutFormatTarget.cpp?rev=789688&r1=789687&r2=789688&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/StdOutFormatTarget.cpp (original)
+++ xerces/c/trunk/src/xercesc/framework/StdOutFormatTarget.cpp Tue Jun 30 12:01:12 2009
@@ -39,7 +39,9 @@
                                   , const XMLSize_t       count
                                   , XMLFormatter* const)
 {
-    fwrite(toWrite, sizeof(XMLByte), count, stdout);
+    XMLSize_t written=fwrite(toWrite, sizeof(XMLByte), count, stdout);
+    if(written!=count)
+        ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotWriteToFile);
     fflush(stdout);
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org