diff options
author | Jeff King <peff@peff.net> | 2014-06-30 12:59:10 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-30 13:43:17 -0700 |
commit | 592ce20820ac36dd868dfd1e61b1aeb3cd3f902a (patch) | |
tree | fbbe421dc052ab1b0feed033569ac23cd29beeeb /builtin/repack.c | |
parent | use strip_suffix instead of ends_with in simple cases (diff) | |
download | tgif-592ce20820ac36dd868dfd1e61b1aeb3cd3f902a.tar.xz |
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>
Diffstat (limited to 'builtin/repack.c')
0 files changed, 0 insertions, 0 deletions