struct strbuf author = STRBUF_INIT;
struct strbuf oneline = STRBUF_INIT;
- while (strbuf_getline(&author, stdin, '\n') != EOF) {
+ while (strbuf_getline_lf(&author, stdin) != EOF) {
const char *v;
if (!skip_prefix(author.buf, "Author: ", &v) &&
!skip_prefix(author.buf, "author ", &v))
continue;
- while (strbuf_getline(&oneline, stdin, '\n') != EOF &&
+ while (strbuf_getline_lf(&oneline, stdin) != EOF &&
oneline.len)
; /* discard headers */
- while (strbuf_getline(&oneline, stdin, '\n') != EOF &&
+ while (strbuf_getline_lf(&oneline, stdin) != EOF &&
!oneline.len)
; /* discard blanks */
insert_one_record(log, v, oneline.buf);