limit max buffer lines on ff