We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 03c6e97 + 34f3999 commit 27132caCopy full SHA for 27132ca
1 file changed
builtin-grep.c
@@ -207,6 +207,7 @@ static int grep_file(struct grep_opt *opt, const char *filename)
207
return 0;
208
}
209
close(i);
210
+ data[sz] = 0;
211
if (opt->relative && opt->prefix_length)
212
filename = quote_path_relative(filename, -1, &buf, opt->prefix);
213
i = grep_buffer(opt, filename, data, sz);
0 commit comments