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