index-pack: use strip_suffix to avoid magic numbers
commit592ce20820ac36dd868dfd1e61b1aeb3cd3f902a
authorJeff King <peff@peff.net>
Mon, 30 Jun 2014 16:59:10 +0000 (30 12:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jun 2014 20:43:17 +0000 (30 13:43 -0700)
treefbbe421dc052ab1b0feed033569ac23cd29beeeb
parent26936bfd9bde1ec46901bea3e53d4fb9ae1b4a4c
index-pack: use strip_suffix to avoid magic numbers

We also switch to using strbufs, which lets us avoid the
potentially dangerous combination of a manual malloc
followed by a strcpy.

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