- xmlIO.c: Bjorn Reese provided a fix for a problem on buffer
  flushing
Daniel
diff --git a/xmlIO.c b/xmlIO.c
index 7eba615..4f11387 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -1416,12 +1416,12 @@
 		ret = out->writecallback(out->context, 
 				 (const char *)out->conv->content, nbchars);
 		if (ret >= 0)
-		    xmlBufferShrink(out->conv, nbchars);
+		    xmlBufferShrink(out->conv, ret);
 	    } else {
 		ret = out->writecallback(out->context, 
 				 (const char *)out->buffer->content, nbchars);
 		if (ret >= 0)
-		    xmlBufferShrink(out->buffer, nbchars);
+		    xmlBufferShrink(out->buffer, ret);
 	    }
 	    if (ret < 0) {
 		xmlGenericError(xmlGenericErrorContext,