summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e3d90e)
raw | patch | inline | side by side (parent: 1e3d90e)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 4 May 2006 04:03:25 +0000 (21:03 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 4 May 2006 04:03:25 +0000 (21:03 -0700) |
It barfed and segfaulted with an incomplete line.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-grep.c | patch | blob | history |
diff --git a/builtin-grep.c b/builtin-grep.c
index 2124fa62e8900754615bf7eb49228a4d2b790d52..e87b5cb48d6eda5ada9a3cd9bb505d8abe36fd41 100644 (file)
--- a/builtin-grep.c
+++ b/builtin-grep.c
}
*eol = ch;
bol = eol + 1;
+ if (!left)
+ break;
left--;
lno++;
}