[[ Bug 11214 ]] Make sure there is enough room for the NUL terminator wh...

...en using textbuffer::appendtextf.