FreeBSD Bugzilla – Attachment 154549 Details for
Bug 198725
bsdgrep broken -f option since r268799
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix for broken -f option in bsdgrep
grep.c.patch (text/plain), 354 bytes, created by
Stefan Grundmann
on 2015-03-20 04:54:19 UTC
(
hide
)
Description:
fix for broken -f option in bsdgrep
Filename:
MIME Type:
Creator:
Stefan Grundmann
Created:
2015-03-20 04:54:19 UTC
Size:
354 bytes
patch
obsolete
>--- grep.c.orig 2015-03-20 04:49:06.558177000 +0000 >+++ grep.c 2015-03-20 04:51:34.888945000 +0000 >@@ -316,7 +316,7 @@ > 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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198725
: 154549