fixed get_next_line returning 0 on non EOL terminated read line