1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +03:00

- xmlIO.c: Bjorn Reese provided a fix for a problem on buffer

flushing
Daniel
This commit is contained in:
Daniel Veillard
2001-05-02 10:58:52 +00:00
parent c654d60364
commit edddff9726
2 changed files with 7 additions and 2 deletions

View File

@ -1416,12 +1416,12 @@ xmlOutputBufferWrite(xmlOutputBufferPtr out, int len, const char *buf) {
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,