summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-09-24 17:07:43 -0400
committerJunio C Hamano <gitster@pobox.com>2015-10-05 11:08:04 -0700
commitb4600fbe071898068ef30be2766ee75880ec308b (patch)
treeee50a70d3f17743800de7bd4726cb917029a01fb /path.c
parentbd22d4ffbc10052fef1a6c52aec066ee64236340 (diff)
downloadgit-b4600fbe071898068ef30be2766ee75880ec308b.tar.gz
merge-recursive: convert malloc / strcpy to strbuf
This would be a fairly routine use of xstrfmt, except that we need to remember the length of the result to pass to cache_name_pos. So just use a strbuf, which makes this simple. As a bonus, this gets rid of confusing references to "pathlen+1". The "1" is for the trailing slash we added, but that is automatically accounted for in the strbuf's len parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
0 files changed, 0 insertions, 0 deletions