diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-11-17 21:18:14 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-17 21:19:55 -0800 |
commit | 4b87474bc9b620cf07b09130e33963cdaf34c603 (patch) | |
tree | f41893e4907c7f19955181d7860eea6155e92b2d /receive-pack.c | |
parent | Update draft release notes for 1.5.3.6 (diff) | |
download | tgif-4b87474bc9b620cf07b09130e33963cdaf34c603.tar.xz |
grep -An -Bm: fix invocation of external grep command
When building command line to invoke external grep, the
arguments to -A/-B/-C options were placd in randarg[] buffer,
but the code forgot that snprintf() does not count terminating
NUL in its return value. This caused "git grep -A1 -B2" to
invoke external grep with "-B21 -A1".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'receive-pack.c')
0 files changed, 0 insertions, 0 deletions