improve ff_get_line to return line length