[PATCH] xmllite: Don't lose terminating character when shrinking buffer