Fix get_line_len() can return -1 (ssize_t)