提交 a74fa110 编写于 作者: C Christian Couder 提交者: Junio C Hamano

for-each-ref: fix off by one read.

Signed-off-by: NChristian Couder <chriscool@tuxfamily.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 53e780c8
......@@ -297,7 +297,7 @@ static const char *find_wholine(const char *who, int wholen, const char *buf, un
if (!eol)
return "";
eol++;
if (eol[1] == '\n')
if (*eol == '\n')
return ""; /* end of header */
buf = eol;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册