aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
Diffstat (limited to 'findutils')
-rw-r--r--findutils/grep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index ce975e771..c0c495bd1 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -123,7 +123,7 @@ static int grep_file(FILE *file)
123 int idx = 0; /* used for iteration through the circular buffer */ 123 int idx = 0; /* used for iteration through the circular buffer */
124#endif /* ENABLE_FEATURE_GREP_CONTEXT */ 124#endif /* ENABLE_FEATURE_GREP_CONTEXT */
125 125
126 while ((line = bb_get_chomped_line_from_file(file)) != NULL) { 126 while ((line = xmalloc_getline(file)) != NULL) {
127 llist_t *pattern_ptr = pattern_head; 127 llist_t *pattern_ptr = pattern_head;
128 grep_list_data_t * gl; 128 grep_list_data_t * gl;
129 129
@@ -280,7 +280,7 @@ static void load_regexes_from_file(llist_t *fopt)
280 fopt = cur->link; 280 fopt = cur->link;
281 free(cur); 281 free(cur);
282 f = xfopen(ffile, "r"); 282 f = xfopen(ffile, "r");
283 while ((line = bb_get_chomped_line_from_file(f)) != NULL) { 283 while ((line = xmalloc_getline(f)) != NULL) {
284 llist_add_to(&pattern_head, 284 llist_add_to(&pattern_head,
285 new_grep_list_data(line, PATTERN_MEM_A)); 285 new_grep_list_data(line, PATTERN_MEM_A));
286 } 286 }