diff --git a/strbuf.c b/strbuf.c index d76f0aed85..b165d044ae 100644 --- a/strbuf.c +++ b/strbuf.c @@ -505,8 +505,8 @@ int strbuf_getline(struct strbuf *sb, FILE *fp, int term) { if (strbuf_getwholeline(sb, fp, term)) return EOF; - if (sb->buf[sb->len-1] == term) - strbuf_setlen(sb, sb->len-1); + if (sb->buf[sb->len - 1] == term) + strbuf_setlen(sb, sb->len - 1); return 0; }