requested to merge ddkilzer/fix-missing-xmlBuf-xmlBuffer-NUL-terminators into master
- buf.c: (xmlBufAddLen):
- Change check for remaining space to account for the NUL terminator. When adding a length exactly equal to the number of unused bytes, a NUL terminator was not written. (xmlBufResize):
buf->useand NUL terminator when allocating a new buffer.
- tree.c: (xmlBufferResize):
buf->useand NUL terminator when allocating a new buffer. (xmlBufferAddHead):
- Set NUL terminator before returning early when shifting contents.