xlog resize fill buffer with null termination