summaryrefslogtreecommitdiff
path: root/receive-pack.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2007-11-17 21:18:14 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-11-17 21:19:55 -0800
commit4b87474bc9b620cf07b09130e33963cdaf34c603 (patch)
treef41893e4907c7f19955181d7860eea6155e92b2d /receive-pack.c
parentUpdate draft release notes for 1.5.3.6 (diff)
downloadtgif-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