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

third pass at the escaping refactoring. Daniel

* xmlIO.c xmlsave.c: third pass at the escaping refactoring.
Daniel
This commit is contained in:
Daniel Veillard
2004-05-14 21:50:42 +00:00
parent f8f2e8f6d9
commit 83a75e05b0
3 changed files with 184 additions and 32 deletions

View File

@ -3029,6 +3029,8 @@ xmlOutputBufferWriteEscape(xmlOutputBufferPtr out, const xmlChar *str,
return(ret);
}
out->written += ret;
} else if (out->buffer->size - out->buffer->use < MINLEN) {
xmlBufferResize(out->buffer, out->buffer->size + MINLEN);
}
written += nbchars;
} while (len > 0);