summaryrefslogtreecommitdiff
path: root/t/t1013/objects/9a/e9e86b7bd6cb1472d9373702d8249973da0832
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2013-03-28 17:47:47 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-03-28 21:48:18 -0700
commit982ac87316a1cf5126888157bdcbfa32268ebe47 (patch)
tree1daa4ad6b365f93117c1d6423e062731f988a283 /t/t1013/objects/9a/e9e86b7bd6cb1472d9373702d8249973da0832
parentdir.c::match_basename(): pay attention to the length of string parameters (diff)
downloadtgif-982ac87316a1cf5126888157bdcbfa32268ebe47.tar.xz
dir.c::match_pathname(): adjust patternlen when shifting pattern
If we receive a pattern that starts with "/", we shift it forward to avoid looking at the "/" part. Since the prefix and patternlen parameters are counts of what is in the pattern, we must decrement them as we increment the pointer. We remembered to handle prefix, but not patternlen. This didn't cause any bugs, though, because the patternlen parameter is not actually used. Since it will be used in future patches, let's correct this oversight. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1013/objects/9a/e9e86b7bd6cb1472d9373702d8249973da0832')
0 files changed, 0 insertions, 0 deletions