My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53e780c
)
for-each-ref: fix off by one read.
author
Christian Couder
<chriscool@tuxfamily.org>
Mon, 12 Nov 2007 04:37:25 +0000
(
05:37
+0100)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 12 Nov 2007 07:40:33 +0000
(23:40 -0800)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-for-each-ref.c
patch
|
blob
|
history
diff --git
a/builtin-for-each-ref.c
b/builtin-for-each-ref.c
index
29f70aa
..
0327f40
100644
(file)
--- a/
builtin-for-each-ref.c
+++ b/
builtin-for-each-ref.c
@@
-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;
}