diff options
| author | Jeff King <peff@peff.net> | 2015-09-24 17:07:43 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2015-10-05 11:08:04 -0700 |
| commit | b4600fbe071898068ef30be2766ee75880ec308b (patch) | |
| tree | ee50a70d3f17743800de7bd4726cb917029a01fb /contrib/persistent-https | |
| parent | transport: use strbufs for status table "quickref" strings (diff) | |
| download | git-b4600fbe071898068ef30be2766ee75880ec308b.tar.gz git-b4600fbe071898068ef30be2766ee75880ec308b.zip | |
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 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
