grep: Fix typo - sbase - suckless unix tools
(HTM) git clone git://git.suckless.org/sbase
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ee7ff4fb9583a15b89c54002a5b0000c7fe38746
(DIR) parent ae7bfda8f6f1b3f1951e8e69b8910d5171bf6236
(HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Wed, 5 Nov 2025 14:45:04 +0100
grep: Fix typo
Diffstat:
M grep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/grep.c b/grep.c
@@ -46,7 +46,7 @@ addpattern(const char *pattern)
patlen = strlen(pattern);
bol = pattern[0] == '^';
- eol = patlen > 0 && pattern[patlen - 1] == '$')
+ eol = patlen > 0 && pattern[patlen - 1] == '$';
if (!Fflag && xflag) {
tmp = enmalloc(Error, patlen + 3);