]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
transport_anonymize_url: use xstrfmt
authorJeff King <peff@peff.net>
Mon, 22 Feb 2016 22:45:05 +0000 (17:45 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2016 22:51:09 +0000 (14:51 -0800)
commit21f9d0f6f2ef54185359d2d1c180770f85127199
treeb9054a5dca7d951babc8a707b73c8ce2bb0fe293
parent7eb45b5f78e257a682ec825839b4b33e025a9615
transport_anonymize_url: use xstrfmt

This function uses xcalloc and two memcpy calls to
concatenate two strings. We can do this as an xstrfmt
one-liner, and then it is more clear that we are allocating
the correct amount of memory.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c