terminates parsing of Config.in at first blank line. This is because
getdelim() in portability.c returns -1 whenever the line comprises only
a single linefeed character. Fixing this was a trivial change to two lines
(see below), and config2help now works on OS X but I haven't regression
tested this on any other commands which rely on getdelim()"
line = *linep = new_line;
}
- line[i] = ch;
+ line[i++] = ch;
if (ch == delim) break;
- i += 1;
}
if (i > *np) {
*np = new_len;
line = *linep = new_line;
}
- line[i + 1] = '\0';
+ line[i] = '\0';
return i > 0 ? i : -1;
}