[line_buffer] small fix to the buffering code