- else if (bytes == 0) {
- /* in case there's no line end it's likely the last line
- * so append to current (if any) */
- if (buf[newql] == ' ')
- curline[str_len (curline) - 1] = '\0';
- curline = realloc (curline, curline_len + str_len (buf));
- if (curline_len == 1)
- *curline = '\0';
- curline_len += str_len (buf);
- str_ncat (curline, curline_len, buf + newql,
- str_len (buf + newql));
- break;
- }