summaryrefslogtreecommitdiff
path: root/t/t2015-checkout-unborn.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <rene.scharfe@lsrfire.ath.cx>2012-05-11 16:53:07 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-05-11 14:31:27 -0700
commit1528d247e53bcf33db5b004a25a7d9b8c75c90e4 (patch)
treece2a6c2da798287f3763fa70e35d77debecdc9e3 /t/t2015-checkout-unborn.sh
parentMerge branch 'rs/maint-dir-strbuf' into rs/dir-strbuf (diff)
downloadtgif-1528d247e53bcf33db5b004a25a7d9b8c75c90e4.tar.xz
dir: respect string length argument of read_directory_recursive()
A directory name is passed to read_directory_recursive() as a length-limited string, through the parameters base and baselen. Suprisingly, base must be a NUL-terminated string as well, as it is passed to opendir(), ignoring baselen. Fix this by postponing the call to opendir() until the length-limted string is added to a strbuf, which provides a NUL in the right place. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2015-checkout-unborn.sh')
0 files changed, 0 insertions, 0 deletions