From: Jeff King Date: Sat, 19 May 2018 01:56:37 +0000 (-0700) Subject: http: use strbufs instead of fixed buffers X-Git-Tag: v2.18.0-rc0~6^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/390c6cbc5e643b6d89869b319b51b5b62a3f5a09?ds=inline;hp=390c6cbc5e643b6d89869b319b51b5b62a3f5a09 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 Signed-off-by: Junio C Hamano ---