transport: use strbufs for status table "quickref" strings
commitbd22d4ffbc10052fef1a6c52aec066ee64236340
authorJeff King <peff@peff.net>
Thu, 24 Sep 2015 21:07:40 +0000 (24 17:07 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Oct 2015 18:08:04 +0000 (5 11:08 -0700)
treed19c7f990f169af3d0b34a46bfe20c46bd1c1adf
parent6c31c22cebe9f0b117fd93ee7792d88e82aaa61e
transport: use strbufs for status table "quickref" strings

We generate range strings like "1234abcd...5678efab" for use
in the the fetch and push status tables. We use fixed-size
buffers along with strcat to do so. These aren't buggy, as
our manual size computation is correct, but there's nothing
checking that this is so.  Let's switch them to strbufs
instead, which are obviously correct, and make it easier to
audit the code base for problematic calls to strcat().

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