summaryrefslogtreecommitdiff
path: root/replace_object.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-05-18 18:56:37 -0700
committerJunio C Hamano <gitster@pobox.com>2018-05-21 09:54:30 +0900
commit390c6cbc5e643b6d89869b319b51b5b62a3f5a09 (patch)
tree76314ecfefce389a63c4950b731d4ada8325d28f /replace_object.c
parent468165c1d8a442994a825f3684528361727cd8c0 (diff)
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>
Diffstat (limited to 'replace_object.c')
0 files changed, 0 insertions, 0 deletions