prune-packed: use strbuf to avoid having to worry about PATH_MAX
commitc235d960cb32ddca352d12c3f8dc053ddfd421dd
authorJunio C Hamano <gitster@pobox.com>
Tue, 17 Dec 2013 18:43:30 +0000 (17 10:43 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Dec 2013 18:43:30 +0000 (17 10:43 -0800)
tree5c9edd349b4a6cfcbf77ca30b47c15933114b62b
parentd7aced95cd681b761468635f8d2a8b82d7ed26fd
prune-packed: use strbuf to avoid having to worry about PATH_MAX

A/very/long/path/to/.git that becomes exactly PATH_MAX bytes long
after suffixed with /objects/??/??38-hex??, would have overflown
the on-stack pathname[] buffer.

Noticed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/prune-packed.c