use xstrfmt to replace xmalloc + sprintf
commit283101869bea8feb5d58f6ea1b568e9b197526d3
authorJeff King <peff@peff.net>
Thu, 19 Jun 2014 21:24:33 +0000 (19 17:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Jun 2014 22:20:54 +0000 (19 15:20 -0700)
tree3aba65688e4a5a11a3d0a60d2fa60930fd398898
parent95244ae3dd49b3eed4dbfe09299b9d8847622218
use xstrfmt to replace xmalloc + sprintf

This is one line shorter, and makes sure the length in the
malloc and sprintf steps match.

These conversions are very straightforward; we can drop the
malloc entirely, and replace the sprintf with xstrfmt.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fmt-merge-msg.c
builtin/show-branch.c
http-push.c
http-walker.c
match-trees.c
merge-recursive.c