grep: use xsnprintf to format failure message
authorJeff King <peff@peff.net>
Thu, 24 Sep 2015 21:06:51 +0000 (17:06 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Sep 2015 17:18:18 +0000 (10:18 -0700)
commit19bdd3e7e160a0b000c15d8bf6d33f4149e3f911
tree4afb39180ae8a79401ffd02774d6b9523c156168
parent48bdf86995423736f36557d744841b08c8bf4e14
grep: use xsnprintf to format failure message

This looks at first glance like the sprintf can overflow our
buffer, but it's actually fine; the p->origin string is
something constant and small, like "command line" or "-e
option".

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c