http: use strbufs instead of fixed buffers
commit390c6cbc5e643b6d89869b319b51b5b62a3f5a09
authorJeff King <peff@peff.net>
Sat, 19 May 2018 01:56:37 +0000 (18 18:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 May 2018 00:54:30 +0000 (21 09:54 +0900)
tree76314ecfefce389a63c4950b731d4ada8325d28f
parent468165c1d8a442994a825f3684528361727cd8c0
http: use strbufs instead of fixed buffers

We keep the names of incoming packs and objects in fixed
PATH_MAX-size buffers, and snprintf() into them. This is
unlikely to end up with truncated filenames, but it is
possible (especially on systems where PATH_MAX is shorter
than actual paths can be). Let's switch to using strbufs,
which makes the question go away entirely.

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