diff options
author | pfg <pfg@FreeBSD.org> | 2015-03-24 01:31:02 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-03-24 01:31:02 +0000 |
commit | 333a2693df06ed1838ff9c67ed96e80fe4b2eeed (patch) | |
tree | 4aecd02acd7673089d568c0bf1023cad5bfb0c6f /usr.bin | |
parent | 5b98e574309a0327d053b3fad118a244d75be637 (diff) | |
download | FreeBSD-src-333a2693df06ed1838ff9c67ed96e80fe4b2eeed.zip FreeBSD-src-333a2693df06ed1838ff9c67ed96e80fe4b2eeed.tar.gz |
MFC r280307:
bsdgrep: fix regression in the -f option since r268799
Caused by an incomplete merge from NetBSD.
PR: 198725
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/grep/grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c index 5631877..2dc5a1d 100644 --- a/usr.bin/grep/grep.c +++ b/usr.bin/grep/grep.c @@ -316,7 +316,7 @@ read_patterns(const char *fn) len = 0; line = NULL; while ((rlen = getline(&line, &len, f)) != -1) - add_pattern(line, line[0] == '\n' ? 0 : len); + add_pattern(line, line[0] == '\n' ? 0 : (size_t)rlen); free(line); if (ferror(f)) err(2, "%s", fn); |