summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorSun He <sunheehnus@gmail.com>2014-03-03 09:24:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-03-03 20:15:10 (GMT)
commit5889271114a25b6750bb6137784ae5a93df22b39 (patch)
tree3f95ef844f90b9c35229cccf4d56c9ac3bcca9d0 /path.c
parent2156a98045f83dd88386b2d4d3241d66bf722ade (diff)
downloadgit-5889271114a25b6750bb6137784ae5a93df22b39.zip
git-5889271114a25b6750bb6137784ae5a93df22b39.tar.gz
git-5889271114a25b6750bb6137784ae5a93df22b39.tar.bz2
finish_tmp_packfile():use strbuf for pathname construction
The old version fixes a maximum length on the buffer, which could be a problem if one is not certain of the length of get_object_directory(). Using strbuf can avoid the protential bug. Helped-by: Michael Haggerty <mhagger@alum.mit.edu> Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Sun He <sunheehnus@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
0 files changed, 0 insertions, 0 deletions