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:
2
xmlIO.c
2
xmlIO.c
@ -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);
|
||||
|
Reference in New Issue
Block a user