[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to grep/src/search.c
From: |
Stepan Kasal |
Subject: |
Changes to grep/src/search.c |
Date: |
Sat, 26 Feb 2005 10:25:58 -0500 |
Index: grep/src/search.c
diff -u grep/src/search.c:1.32 grep/src/search.c:1.33
--- grep/src/search.c:1.32 Thu Feb 24 09:50:19 2005
+++ grep/src/search.c Sat Feb 26 15:25:57 2005
@@ -768,6 +768,10 @@
char eol = eolbyte;
if (!exact)
{
+ /* FIXME: The case when '\n' is not found indicates a bug:
+ Since grep is line oriented, the match should never contain
+ a newline, so there _must_ be a newline following.
+ */
if (!(end = memchr (end, eol, buflim - end)))
end = buflim;
else