]> git.ipfire.org Git - thirdparty/git.git/commit - remote.c
convert trivial cases to FLEX_ARRAY macros
authorJeff King <peff@peff.net>
Mon, 22 Feb 2016 22:44:32 +0000 (17:44 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2016 22:51:09 +0000 (14:51 -0800)
commit96ffc06f72f693d80f05059a1f0e5ca9007d5f1b
tree8f4587b3132a422757280f3d4f7bc302230efd7c
parent3733e6946465d4a3a1d89026a5ec911d3af339ab
convert trivial cases to FLEX_ARRAY macros

Using FLEX_ARRAY macros reduces the amount of manual
computation size we have to do. It also ensures we don't
overflow size_t, and it makes sure we write the same number
of bytes that we allocated.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
17 files changed:
attr.c
builtin/blame.c
builtin/help.c
builtin/mktree.c
builtin/reflog.c
cache-tree.c
combine-diff.c
diff.c
dir.c
hashmap.c
help.c
log-tree.c
name-hash.c
ref-filter.c
refs.c
refs/files-backend.c
remote.c