mirror of
https://github.com/git/git.git
synced 2024-11-19 06:33:56 +01:00
for-each-ref: fix off by one read.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
53e780c8f6
commit
a74fa1106d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user