Files
git/builtin
Jeff King 75faa45ae0 replace trivial malloc + sprintf / strcpy calls with xstrfmt
It's a common pattern to do:

  foo = xmalloc(strlen(one) + strlen(two) + 1 + 1);
  sprintf(foo, "%s %s", one, two);

(or possibly some variant with strcpy()s or a more
complicated length computation).  We can switch these to use
xstrfmt, which is shorter, involves less error-prone manual
computation, and removes many sprintf and strcpy calls which
make it harder to audit the code for real buffer overflows.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-09-25 10:18:18 -07:00
..
2015-08-24 13:09:02 -07:00
2015-08-31 15:39:10 -07:00
2015-08-25 13:11:21 -07:00
2015-08-31 15:39:05 -07:00
2015-07-13 14:02:02 -07:00
2015-08-03 11:01:10 -07:00
2015-08-31 15:39:03 -07:00